
<!DOCTYPE HTML>
<html lang="en" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>cc · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search-title/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
        <link rel="stylesheet" href="../styles/website.css">
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="dragonBones.html" />
    
    
    <link rel="prev" href="anysdk.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
    <nav role="navigation" class="autoshow">
        <ul class="summary">
        <li><a href="http://cocos.com" class="btn" target="_blank"><img src="http://forum.cocos.com/images/logo.png" height="30" /></a></li>
        <li><a href="#" class="btn" onclick="toggleLanguage()">中文</a></li>
        
        
        <li class="version-link">
            <a href="#" class="btn" style="color:#444"></i>Version: <span style="font-weight: bold; display: inline">2.0 Preview</span></a>
            <ul class="hovershow">
                
                <li><a href="http://docs.cocos.com/creator/api/en" class="btn">Version: <span style="font-weight:bold; display: inline">1.x</span></a></li>
                
                <li><a href="http://docs.cocos.com/creator/api/2.0/en" class="btn">Version: <span style="font-weight:bold; display: inline">2.0 Preview</span></a></li>
                
            </ul>
        </li>                
        
          
        
        
        <li>
            <a class="btn"><i class="fa fa-book"></i>Cocos Creator</a>
            <ul>
                
                <li><a href="http://docs.cocos.com/creator/manual/en" class="btn">Manual</a></li>
                
                <li><a href="http://docs.cocos.com/creator/api/en" class="btn">API Ref</a></li>
                
            </ul>
        </li>                
        
        
        
        <li>
            <a class="btn"><i class="fa fa-book"></i>Cocos2d-x</a>
            <ul>
                
                <li><a href="http://docs.cocos.com/cocos2d-x/manual/en/" class="btn">Manual</a></li>
                
                <li><a href="http://www.cocos2d-x.org/docs/api-ref/index.html" class="btn">API Ref</a></li>
                
            </ul>
        </li>                
        
        
        
        <li><a href="http://docs.anysdk.com/" class="btn"><i class="fa fa-book"></i>AnySDK</a></li>
        
        
        </ul>
    </nav>
    
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        <li class="header">Modules</li>
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="GLOBAL-MACROS.html">
            
                <a href="GLOBAL-MACROS.html">
            
                    
                    GLOBAL-MACROS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="_decorator.html">
            
                <a href="_decorator.html">
            
                    
                    _decorator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="anysdk.html">
            
                <a href="anysdk.html">
            
                    
                    anysdk
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.5" data-path="cc.html">
            
                <a href="cc.html">
            
                    
                    cc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="dragonBones.html">
            
                <a href="dragonBones.html">
            
                    
                    dragonBones
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="js.html">
            
                <a href="js.html">
            
                    
                    js
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="sp.html">
            
                <a href="sp.html">
            
                    
                    sp
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="sp.spine.html">
            
                <a href="sp.spine.html">
            
                    
                    sp.spine
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Classes</li>
        
        
    
        <li class="chapter " data-level="2.1" data-path="../classes/Action.html">
            
                <a href="../classes/Action.html">
            
                    
                    Action
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="../classes/ActionInstant.html">
            
                <a href="../classes/ActionInstant.html">
            
                    
                    ActionInstant
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="../classes/ActionInterval.html">
            
                <a href="../classes/ActionInterval.html">
            
                    
                    ActionInterval
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="../classes/ActionManager.html">
            
                <a href="../classes/ActionManager.html">
            
                    
                    ActionManager
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="../classes/AffineTransform.html">
            
                <a href="../classes/AffineTransform.html">
            
                    
                    AffineTransform
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="../classes/AgentManager.html">
            
                <a href="../classes/AgentManager.html">
            
                    
                    AgentManager
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="../classes/Animation.html">
            
                <a href="../classes/Animation.html">
            
                    
                    Animation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="../classes/AnimationClip.html">
            
                <a href="../classes/AnimationClip.html">
            
                    
                    AnimationClip
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="../classes/AnimationState.html">
            
                <a href="../classes/AnimationState.html">
            
                    
                    AnimationState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="../classes/ArmatureDisplay.html">
            
                <a href="../classes/ArmatureDisplay.html">
            
                    
                    ArmatureDisplay
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="../classes/array.html">
            
                <a href="../classes/array.html">
            
                    
                    array
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="../classes/Asset.html">
            
                <a href="../classes/Asset.html">
            
                    
                    Asset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="../classes/AudioClip.html">
            
                <a href="../classes/AudioClip.html">
            
                    
                    AudioClip
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.14" data-path="../classes/audioEngine.html">
            
                <a href="../classes/audioEngine.html">
            
                    
                    audioEngine
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.15" data-path="../classes/AudioSource.html">
            
                <a href="../classes/AudioSource.html">
            
                    
                    AudioSource
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.16" data-path="../classes/BitmapFont.html">
            
                <a href="../classes/BitmapFont.html">
            
                    
                    BitmapFont
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.17" data-path="../classes/BlockInputEvents.html">
            
                <a href="../classes/BlockInputEvents.html">
            
                    
                    BlockInputEvents
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.18" data-path="../classes/BoxCollider.html">
            
                <a href="../classes/BoxCollider.html">
            
                    
                    BoxCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.19" data-path="../classes/Button.html">
            
                <a href="../classes/Button.html">
            
                    
                    Button
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.20" data-path="../classes/CallbacksInvoker.html">
            
                <a href="../classes/CallbacksInvoker.html">
            
                    
                    CallbacksInvoker
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.21" data-path="../classes/Camera.html">
            
                <a href="../classes/Camera.html">
            
                    
                    Camera
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.22" data-path="../classes/Canvas.html">
            
                <a href="../classes/Canvas.html">
            
                    
                    Canvas
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.23" data-path="../classes/CircleCollider.html">
            
                <a href="../classes/CircleCollider.html">
            
                    
                    CircleCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.24" data-path="../classes/CoffeeScript.html">
            
                <a href="../classes/CoffeeScript.html">
            
                    
                    CoffeeScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.25" data-path="../classes/Collider.html">
            
                <a href="../classes/Collider.html">
            
                    
                    Collider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.26" data-path="../classes/Collider.Box.html">
            
                <a href="../classes/Collider.Box.html">
            
                    
                    Collider.Box
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.27" data-path="../classes/Collider.Circle.html">
            
                <a href="../classes/Collider.Circle.html">
            
                    
                    Collider.Circle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.28" data-path="../classes/Collider.Polygon.html">
            
                <a href="../classes/Collider.Polygon.html">
            
                    
                    Collider.Polygon
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.29" data-path="../classes/CollisionManager.html">
            
                <a href="../classes/CollisionManager.html">
            
                    
                    CollisionManager
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.30" data-path="../classes/Color.html">
            
                <a href="../classes/Color.html">
            
                    
                    Color
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.31" data-path="../classes/Component.html">
            
                <a href="../classes/Component.html">
            
                    
                    Component
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.32" data-path="../classes/Component.EventHandler.html">
            
                <a href="../classes/Component.EventHandler.html">
            
                    
                    Component.EventHandler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.33" data-path="../classes/constructor.html">
            
                <a href="../classes/constructor.html">
            
                    
                    constructor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.34" data-path="../classes/ContainerStrategy.html">
            
                <a href="../classes/ContainerStrategy.html">
            
                    
                    ContainerStrategy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.35" data-path="../classes/ContentStrategy.html">
            
                <a href="../classes/ContentStrategy.html">
            
                    
                    ContentStrategy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.36" data-path="../classes/Details.html">
            
                <a href="../classes/Details.html">
            
                    
                    Details
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.37" data-path="../classes/Director.html">
            
                <a href="../classes/Director.html">
            
                    
                    Director
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.38" data-path="../classes/DistanceJoint.html">
            
                <a href="../classes/DistanceJoint.html">
            
                    
                    DistanceJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.39" data-path="../classes/DragonBonesAsset.html">
            
                <a href="../classes/DragonBonesAsset.html">
            
                    
                    DragonBonesAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.40" data-path="../classes/DragonBonesAtlasAsset.html">
            
                <a href="../classes/DragonBonesAtlasAsset.html">
            
                    
                    DragonBonesAtlasAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.41" data-path="../classes/EditBox.html">
            
                <a href="../classes/EditBox.html">
            
                    
                    EditBox
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.42" data-path="../classes/EqualToFrame.html">
            
                <a href="../classes/EqualToFrame.html">
            
                    
                    EqualToFrame
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.43" data-path="../classes/EqualToWindow.html">
            
                <a href="../classes/EqualToWindow.html">
            
                    
                    EqualToWindow
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.44" data-path="../classes/Event.html">
            
                <a href="../classes/Event.html">
            
                    
                    Event
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.45" data-path="../classes/Event.EventAcceleration.html">
            
                <a href="../classes/Event.EventAcceleration.html">
            
                    
                    Event.EventAcceleration
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.46" data-path="../classes/Event.EventCustom.html">
            
                <a href="../classes/Event.EventCustom.html">
            
                    
                    Event.EventCustom
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.47" data-path="../classes/Event.EventKeyboard.html">
            
                <a href="../classes/Event.EventKeyboard.html">
            
                    
                    Event.EventKeyboard
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.48" data-path="../classes/Event.EventMouse.html">
            
                <a href="../classes/Event.EventMouse.html">
            
                    
                    Event.EventMouse
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.49" data-path="../classes/Event.EventTouch.html">
            
                <a href="../classes/Event.EventTouch.html">
            
                    
                    Event.EventTouch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.50" data-path="../classes/EventTarget.html">
            
                <a href="../classes/EventTarget.html">
            
                    
                    EventTarget
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.51" data-path="../classes/FiniteTimeAction.html">
            
                <a href="../classes/FiniteTimeAction.html">
            
                    
                    FiniteTimeAction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.52" data-path="../classes/Font.html">
            
                <a href="../classes/Font.html">
            
                    
                    Font
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.53" data-path="../classes/Game.html">
            
                <a href="../classes/Game.html">
            
                    
                    Game
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.54" data-path="../classes/Graphics.html">
            
                <a href="../classes/Graphics.html">
            
                    
                    Graphics
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.55" data-path="../classes/Intersection.html">
            
                <a href="../classes/Intersection.html">
            
                    
                    Intersection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.56" data-path="../classes/Joint.html">
            
                <a href="../classes/Joint.html">
            
                    
                    Joint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.57" data-path="../classes/JsonAsset.html">
            
                <a href="../classes/JsonAsset.html">
            
                    
                    JsonAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.58" data-path="../classes/Label.html">
            
                <a href="../classes/Label.html">
            
                    
                    Label
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.59" data-path="../classes/LabelAtlas.html">
            
                <a href="../classes/LabelAtlas.html">
            
                    
                    LabelAtlas
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.60" data-path="../classes/LabelOutline.html">
            
                <a href="../classes/LabelOutline.html">
            
                    
                    LabelOutline
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.61" data-path="../classes/Layout.html">
            
                <a href="../classes/Layout.html">
            
                    
                    Layout
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.62" data-path="../classes/loader.html">
            
                <a href="../classes/loader.html">
            
                    
                    loader
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.63" data-path="../classes/LoadingItems.html">
            
                <a href="../classes/LoadingItems.html">
            
                    
                    LoadingItems
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.64" data-path="../classes/Manifold.html">
            
                <a href="../classes/Manifold.html">
            
                    
                    Manifold
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.65" data-path="../classes/ManifoldPoint.html">
            
                <a href="../classes/ManifoldPoint.html">
            
                    
                    ManifoldPoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.66" data-path="../classes/Mask.html">
            
                <a href="../classes/Mask.html">
            
                    
                    Mask
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.67" data-path="../classes/misc.html">
            
                <a href="../classes/misc.html">
            
                    
                    misc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.68" data-path="../classes/MotionStreak.html">
            
                <a href="../classes/MotionStreak.html">
            
                    
                    MotionStreak
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.69" data-path="../classes/MotorJoint.html">
            
                <a href="../classes/MotorJoint.html">
            
                    
                    MotorJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.70" data-path="../classes/MouseJoint.html">
            
                <a href="../classes/MouseJoint.html">
            
                    
                    MouseJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.71" data-path="../classes/Node.html">
            
                <a href="../classes/Node.html">
            
                    
                    Node
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.72" data-path="../classes/NodePool.html">
            
                <a href="../classes/NodePool.html">
            
                    
                    NodePool
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.73" data-path="../classes/OriginalContainer.html">
            
                <a href="../classes/OriginalContainer.html">
            
                    
                    OriginalContainer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.74" data-path="../classes/PageView.html">
            
                <a href="../classes/PageView.html">
            
                    
                    PageView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.75" data-path="../classes/PageViewIndicator.html">
            
                <a href="../classes/PageViewIndicator.html">
            
                    
                    PageViewIndicator
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.76" data-path="../classes/ParticleAsset.html">
            
                <a href="../classes/ParticleAsset.html">
            
                    
                    ParticleAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.77" data-path="../classes/ParticleSystem.html">
            
                <a href="../classes/ParticleSystem.html">
            
                    
                    ParticleSystem
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.78" data-path="../classes/path.html">
            
                <a href="../classes/path.html">
            
                    
                    path
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.79" data-path="../classes/PhysicsBoxCollider.html">
            
                <a href="../classes/PhysicsBoxCollider.html">
            
                    
                    PhysicsBoxCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.80" data-path="../classes/PhysicsChainCollider.html">
            
                <a href="../classes/PhysicsChainCollider.html">
            
                    
                    PhysicsChainCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.81" data-path="../classes/PhysicsCircleCollider.html">
            
                <a href="../classes/PhysicsCircleCollider.html">
            
                    
                    PhysicsCircleCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.82" data-path="../classes/PhysicsCollider.html">
            
                <a href="../classes/PhysicsCollider.html">
            
                    
                    PhysicsCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.83" data-path="../classes/PhysicsContact.html">
            
                <a href="../classes/PhysicsContact.html">
            
                    
                    PhysicsContact
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.84" data-path="../classes/PhysicsImpulse.html">
            
                <a href="../classes/PhysicsImpulse.html">
            
                    
                    PhysicsImpulse
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.85" data-path="../classes/PhysicsManager.html">
            
                <a href="../classes/PhysicsManager.html">
            
                    
                    PhysicsManager
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.86" data-path="../classes/PhysicsPolygonCollider.html">
            
                <a href="../classes/PhysicsPolygonCollider.html">
            
                    
                    PhysicsPolygonCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.87" data-path="../classes/PhysicsRayCastResult.html">
            
                <a href="../classes/PhysicsRayCastResult.html">
            
                    
                    PhysicsRayCastResult
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.88" data-path="../classes/Pipeline.html">
            
                <a href="../classes/Pipeline.html">
            
                    
                    Pipeline
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.89" data-path="../classes/Pipeline.Downloader.html">
            
                <a href="../classes/Pipeline.Downloader.html">
            
                    
                    Pipeline.Downloader
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.90" data-path="../classes/Pipeline.Loader.html">
            
                <a href="../classes/Pipeline.Loader.html">
            
                    
                    Pipeline.Loader
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.91" data-path="../classes/Playable.html">
            
                <a href="../classes/Playable.html">
            
                    
                    Playable
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.92" data-path="../classes/PluginParam.html">
            
                <a href="../classes/PluginParam.html">
            
                    
                    PluginParam
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.93" data-path="../classes/PluginProtocol.html">
            
                <a href="../classes/PluginProtocol.html">
            
                    
                    PluginProtocol
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.94" data-path="../classes/PolygonCollider.html">
            
                <a href="../classes/PolygonCollider.html">
            
                    
                    PolygonCollider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.95" data-path="../classes/Pool.html">
            
                <a href="../classes/Pool.html">
            
                    
                    Pool
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.96" data-path="../classes/Prefab.html">
            
                <a href="../classes/Prefab.html">
            
                    
                    Prefab
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.97" data-path="../classes/PrismaticJoint.html">
            
                <a href="../classes/PrismaticJoint.html">
            
                    
                    PrismaticJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.98" data-path="../classes/PrivateNode.html">
            
                <a href="../classes/PrivateNode.html">
            
                    
                    PrivateNode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.99" data-path="../classes/ProgressBar.html">
            
                <a href="../classes/ProgressBar.html">
            
                    
                    ProgressBar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.100" data-path="../classes/ProportionalToFrame.html">
            
                <a href="../classes/ProportionalToFrame.html">
            
                    
                    ProportionalToFrame
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.101" data-path="../classes/ProportionalToWindow.html">
            
                <a href="../classes/ProportionalToWindow.html">
            
                    
                    ProportionalToWindow
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.102" data-path="../classes/ProtocolAds.html">
            
                <a href="../classes/ProtocolAds.html">
            
                    
                    ProtocolAds
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.103" data-path="../classes/ProtocolAdTracking.html">
            
                <a href="../classes/ProtocolAdTracking.html">
            
                    
                    ProtocolAdTracking
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.104" data-path="../classes/ProtocolAnalytics.html">
            
                <a href="../classes/ProtocolAnalytics.html">
            
                    
                    ProtocolAnalytics
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.105" data-path="../classes/ProtocolCrash.html">
            
                <a href="../classes/ProtocolCrash.html">
            
                    
                    ProtocolCrash
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.106" data-path="../classes/ProtocolCustom.html">
            
                <a href="../classes/ProtocolCustom.html">
            
                    
                    ProtocolCustom
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.107" data-path="../classes/ProtocolIAP.html">
            
                <a href="../classes/ProtocolIAP.html">
            
                    
                    ProtocolIAP
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.108" data-path="../classes/ProtocolPush.html">
            
                <a href="../classes/ProtocolPush.html">
            
                    
                    ProtocolPush
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.109" data-path="../classes/ProtocolREC.html">
            
                <a href="../classes/ProtocolREC.html">
            
                    
                    ProtocolREC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.110" data-path="../classes/ProtocolShare.html">
            
                <a href="../classes/ProtocolShare.html">
            
                    
                    ProtocolShare
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.111" data-path="../classes/ProtocolSocial.html">
            
                <a href="../classes/ProtocolSocial.html">
            
                    
                    ProtocolSocial
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.112" data-path="../classes/ProtocolUser.html">
            
                <a href="../classes/ProtocolUser.html">
            
                    
                    ProtocolUser
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.113" data-path="../classes/Quat.html">
            
                <a href="../classes/Quat.html">
            
                    
                    Quat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.114" data-path="../classes/RawAsset.html">
            
                <a href="../classes/RawAsset.html">
            
                    
                    RawAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.115" data-path="../classes/Rect.html">
            
                <a href="../classes/Rect.html">
            
                    
                    Rect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.116" data-path="../classes/RenderComponent.html">
            
                <a href="../classes/RenderComponent.html">
            
                    
                    RenderComponent
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.117" data-path="../classes/RenderTexture.html">
            
                <a href="../classes/RenderTexture.html">
            
                    
                    RenderTexture
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.118" data-path="../classes/ResolutionPolicy.html">
            
                <a href="../classes/ResolutionPolicy.html">
            
                    
                    ResolutionPolicy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.119" data-path="../classes/RevoluteJoint.html">
            
                <a href="../classes/RevoluteJoint.html">
            
                    
                    RevoluteJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.120" data-path="../classes/RichText.html">
            
                <a href="../classes/RichText.html">
            
                    
                    RichText
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.121" data-path="../classes/RigidBody.html">
            
                <a href="../classes/RigidBody.html">
            
                    
                    RigidBody
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.122" data-path="../classes/RopeJoint.html">
            
                <a href="../classes/RopeJoint.html">
            
                    
                    RopeJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.123" data-path="../classes/Scene.html">
            
                <a href="../classes/Scene.html">
            
                    
                    Scene
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.124" data-path="../classes/SceneAsset.html">
            
                <a href="../classes/SceneAsset.html">
            
                    
                    SceneAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.125" data-path="../classes/Scheduler.html">
            
                <a href="../classes/Scheduler.html">
            
                    
                    Scheduler
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.126" data-path="../classes/screen.html">
            
                <a href="../classes/screen.html">
            
                    
                    screen
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.127" data-path="../classes/Scrollbar.html">
            
                <a href="../classes/Scrollbar.html">
            
                    
                    Scrollbar
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.128" data-path="../classes/ScrollView.html">
            
                <a href="../classes/ScrollView.html">
            
                    
                    ScrollView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.129" data-path="../classes/Size.html">
            
                <a href="../classes/Size.html">
            
                    
                    Size
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.130" data-path="../classes/Skeleton.html">
            
                <a href="../classes/Skeleton.html">
            
                    
                    Skeleton
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.131" data-path="../classes/SkeletonData.html">
            
                <a href="../classes/SkeletonData.html">
            
                    
                    SkeletonData
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.132" data-path="../classes/Slider.html">
            
                <a href="../classes/Slider.html">
            
                    
                    Slider
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.133" data-path="../classes/Sprite.html">
            
                <a href="../classes/Sprite.html">
            
                    
                    Sprite
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.134" data-path="../classes/SpriteAtlas.html">
            
                <a href="../classes/SpriteAtlas.html">
            
                    
                    SpriteAtlas
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.135" data-path="../classes/SpriteFrame.html">
            
                <a href="../classes/SpriteFrame.html">
            
                    
                    SpriteFrame
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.136" data-path="../classes/sys.html">
            
                <a href="../classes/sys.html">
            
                    
                    sys
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.137" data-path="../classes/SystemEvent.html">
            
                <a href="../classes/SystemEvent.html">
            
                    
                    SystemEvent
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.138" data-path="../classes/SystemEvent.EventType.html">
            
                <a href="../classes/SystemEvent.EventType.html">
            
                    
                    SystemEvent.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.139" data-path="../classes/TextAsset.html">
            
                <a href="../classes/TextAsset.html">
            
                    
                    TextAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.140" data-path="../classes/Texture2D.html">
            
                <a href="../classes/Texture2D.html">
            
                    
                    Texture2D
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.141" data-path="../classes/TiledLayer.html">
            
                <a href="../classes/TiledLayer.html">
            
                    
                    TiledLayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.142" data-path="../classes/TiledMap.html">
            
                <a href="../classes/TiledMap.html">
            
                    
                    TiledMap
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.143" data-path="../classes/TiledMapAsset.html">
            
                <a href="../classes/TiledMapAsset.html">
            
                    
                    TiledMapAsset
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.144" data-path="../classes/TiledObjectGroup.html">
            
                <a href="../classes/TiledObjectGroup.html">
            
                    
                    TiledObjectGroup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.145" data-path="../classes/TiledTile.html">
            
                <a href="../classes/TiledTile.html">
            
                    
                    TiledTile
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.146" data-path="../classes/Toggle.html">
            
                <a href="../classes/Toggle.html">
            
                    
                    Toggle
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.147" data-path="../classes/ToggleContainer.html">
            
                <a href="../classes/ToggleContainer.html">
            
                    
                    ToggleContainer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.148" data-path="../classes/ToggleGroup.html">
            
                <a href="../classes/ToggleGroup.html">
            
                    
                    ToggleGroup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.149" data-path="../classes/Touch.html">
            
                <a href="../classes/Touch.html">
            
                    
                    Touch
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.150" data-path="../classes/TTFFont.html">
            
                <a href="../classes/TTFFont.html">
            
                    
                    TTFFont
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.151" data-path="../classes/TypeScript.html">
            
                <a href="../classes/TypeScript.html">
            
                    
                    TypeScript
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.152" data-path="../classes/url.html">
            
                <a href="../classes/url.html">
            
                    
                    url
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.153" data-path="../classes/ValueType.html">
            
                <a href="../classes/ValueType.html">
            
                    
                    ValueType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.154" data-path="../classes/Vec2.html">
            
                <a href="../classes/Vec2.html">
            
                    
                    Vec2
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.155" data-path="../classes/Vec3.html">
            
                <a href="../classes/Vec3.html">
            
                    
                    Vec3
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.156" data-path="../classes/VideoPlayer.html">
            
                <a href="../classes/VideoPlayer.html">
            
                    
                    VideoPlayer
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.157" data-path="../classes/View.html">
            
                <a href="../classes/View.html">
            
                    
                    View
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.158" data-path="../classes/ViewGroup.html">
            
                <a href="../classes/ViewGroup.html">
            
                    
                    ViewGroup
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.159" data-path="../classes/visibleRect.html">
            
                <a href="../classes/visibleRect.html">
            
                    
                    visibleRect
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.160" data-path="../classes/WebView.html">
            
                <a href="../classes/WebView.html">
            
                    
                    WebView
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.161" data-path="../classes/WeldJoint.html">
            
                <a href="../classes/WeldJoint.html">
            
                    
                    WeldJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.162" data-path="../classes/WheelJoint.html">
            
                <a href="../classes/WheelJoint.html">
            
                    
                    WheelJoint
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.163" data-path="../classes/Widget.html">
            
                <a href="../classes/Widget.html">
            
                    
                    Widget
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="2.164" data-path="../classes/WorldManifold.html">
            
                <a href="../classes/WorldManifold.html">
            
                    
                    WorldManifold
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Enums</li>
        
        
    
        <li class="chapter " data-level="3.1" data-path="../enums/AccountGender.html">
            
                <a href="../enums/AccountGender.html">
            
                    
                    AccountGender
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="../enums/AccountOperate.html">
            
                <a href="../enums/AccountOperate.html">
            
                    
                    AccountOperate
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="../enums/AccountType.html">
            
                <a href="../enums/AccountType.html">
            
                    
                    AccountType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="../enums/AdsPos.html">
            
                <a href="../enums/AdsPos.html">
            
                    
                    AdsPos
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.5" data-path="../enums/AdsResultCode.html">
            
                <a href="../enums/AdsResultCode.html">
            
                    
                    AdsResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.6" data-path="../enums/AdsType.html">
            
                <a href="../enums/AdsType.html">
            
                    
                    AdsType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.7" data-path="../enums/AnimationEventType.html">
            
                <a href="../enums/AnimationEventType.html">
            
                    
                    AnimationEventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.8" data-path="../enums/audioEngine.AudioState.html">
            
                <a href="../enums/audioEngine.AudioState.html">
            
                    
                    audioEngine.AudioState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.9" data-path="../enums/BlendFactor.html">
            
                <a href="../enums/BlendFactor.html">
            
                    
                    BlendFactor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.10" data-path="../enums/Button.Transition.html">
            
                <a href="../enums/Button.Transition.html">
            
                    
                    Button.Transition
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.11" data-path="../enums/Camera.ClearFlags.html">
            
                <a href="../enums/Camera.ClearFlags.html">
            
                    
                    Camera.ClearFlags
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.12" data-path="../enums/CustomResultCode.html">
            
                <a href="../enums/CustomResultCode.html">
            
                    
                    CustomResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.13" data-path="../enums/DebugMode.html">
            
                <a href="../enums/DebugMode.html">
            
                    
                    DebugMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.14" data-path="../enums/DrawBits.html">
            
                <a href="../enums/DrawBits.html">
            
                    
                    DrawBits
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.15" data-path="../enums/EditBox.InputFlag.html">
            
                <a href="../enums/EditBox.InputFlag.html">
            
                    
                    EditBox.InputFlag
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.16" data-path="../enums/EditBox.InputMode.html">
            
                <a href="../enums/EditBox.InputMode.html">
            
                    
                    EditBox.InputMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.17" data-path="../enums/EditBox.KeyboardReturnType.html">
            
                <a href="../enums/EditBox.KeyboardReturnType.html">
            
                    
                    EditBox.KeyboardReturnType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.18" data-path="../enums/Graphics.LineCap.html">
            
                <a href="../enums/Graphics.LineCap.html">
            
                    
                    Graphics.LineCap
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.19" data-path="../enums/Graphics.LineJoin.html">
            
                <a href="../enums/Graphics.LineJoin.html">
            
                    
                    Graphics.LineJoin
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.20" data-path="../enums/ImageFormat.html">
            
                <a href="../enums/ImageFormat.html">
            
                    
                    ImageFormat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.21" data-path="../enums/KEY.html">
            
                <a href="../enums/KEY.html">
            
                    
                    KEY
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.22" data-path="../enums/Label.HorizontalAlign.html">
            
                <a href="../enums/Label.HorizontalAlign.html">
            
                    
                    Label.HorizontalAlign
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.23" data-path="../enums/Label.Overflow.html">
            
                <a href="../enums/Label.Overflow.html">
            
                    
                    Label.Overflow
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.24" data-path="../enums/Label.Type.html">
            
                <a href="../enums/Label.Type.html">
            
                    
                    Label.Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.25" data-path="../enums/Label.VerticalAlign.html">
            
                <a href="../enums/Label.VerticalAlign.html">
            
                    
                    Label.VerticalAlign
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.26" data-path="../enums/Layout.AxisDirection.html">
            
                <a href="../enums/Layout.AxisDirection.html">
            
                    
                    Layout.AxisDirection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.27" data-path="../enums/Layout.HorizontalDirection.html">
            
                <a href="../enums/Layout.HorizontalDirection.html">
            
                    
                    Layout.HorizontalDirection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.28" data-path="../enums/Layout.ResizeMode.html">
            
                <a href="../enums/Layout.ResizeMode.html">
            
                    
                    Layout.ResizeMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.29" data-path="../enums/Layout.Type.html">
            
                <a href="../enums/Layout.Type.html">
            
                    
                    Layout.Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.30" data-path="../enums/Layout.VerticalDirection.html">
            
                <a href="../enums/Layout.VerticalDirection.html">
            
                    
                    Layout.VerticalDirection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.31" data-path="../enums/LoadingItems.ItemState.html">
            
                <a href="../enums/LoadingItems.ItemState.html">
            
                    
                    LoadingItems.ItemState
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.32" data-path="../enums/macro.html">
            
                <a href="../enums/macro.html">
            
                    
                    macro
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.33" data-path="../enums/Mask.Type.html">
            
                <a href="../enums/Mask.Type.html">
            
                    
                    Mask.Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.34" data-path="../enums/NetworkType.html">
            
                <a href="../enums/NetworkType.html">
            
                    
                    NetworkType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.35" data-path="../enums/Node.EventType.html">
            
                <a href="../enums/Node.EventType.html">
            
                    
                    Node.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.36" data-path="../enums/PageView.Direction.html">
            
                <a href="../enums/PageView.Direction.html">
            
                    
                    PageView.Direction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.37" data-path="../enums/PageView.EventType.html">
            
                <a href="../enums/PageView.EventType.html">
            
                    
                    PageView.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.38" data-path="../enums/PageView.SizeMode.html">
            
                <a href="../enums/PageView.SizeMode.html">
            
                    
                    PageView.SizeMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.39" data-path="../enums/PageViewIndicator.Direction.html">
            
                <a href="../enums/PageViewIndicator.Direction.html">
            
                    
                    PageViewIndicator.Direction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.40" data-path="../enums/ParticleSystem.EmitterMode.html">
            
                <a href="../enums/ParticleSystem.EmitterMode.html">
            
                    
                    ParticleSystem.EmitterMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.41" data-path="../enums/ParticleSystem.PositionType.html">
            
                <a href="../enums/ParticleSystem.PositionType.html">
            
                    
                    ParticleSystem.PositionType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.42" data-path="../enums/PayResultCode.html">
            
                <a href="../enums/PayResultCode.html">
            
                    
                    PayResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.43" data-path="../enums/Prefab.OptimizationPolicy.html">
            
                <a href="../enums/Prefab.OptimizationPolicy.html">
            
                    
                    Prefab.OptimizationPolicy
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.44" data-path="../enums/ProgressBar.Mode.html">
            
                <a href="../enums/ProgressBar.Mode.html">
            
                    
                    ProgressBar.Mode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.45" data-path="../enums/PushActionResultCode.html">
            
                <a href="../enums/PushActionResultCode.html">
            
                    
                    PushActionResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.46" data-path="../enums/RayCastType.html">
            
                <a href="../enums/RayCastType.html">
            
                    
                    RayCastType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.47" data-path="../enums/RECResultCode.html">
            
                <a href="../enums/RECResultCode.html">
            
                    
                    RECResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.48" data-path="../enums/RigidBodyType.html">
            
                <a href="../enums/RigidBodyType.html">
            
                    
                    RigidBodyType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.49" data-path="../enums/Scrollbar.Direction.html">
            
                <a href="../enums/Scrollbar.Direction.html">
            
                    
                    Scrollbar.Direction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.50" data-path="../enums/ScrollView.EventType.html">
            
                <a href="../enums/ScrollView.EventType.html">
            
                    
                    ScrollView.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.51" data-path="../enums/ShareResultCode.html">
            
                <a href="../enums/ShareResultCode.html">
            
                    
                    ShareResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.52" data-path="../enums/Slider.Direction.html">
            
                <a href="../enums/Slider.Direction.html">
            
                    
                    Slider.Direction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.53" data-path="../enums/SocialRetCode.html">
            
                <a href="../enums/SocialRetCode.html">
            
                    
                    SocialRetCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.54" data-path="../enums/Sprite.FillType.html">
            
                <a href="../enums/Sprite.FillType.html">
            
                    
                    Sprite.FillType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.55" data-path="../enums/Sprite.SizeMode.html">
            
                <a href="../enums/Sprite.SizeMode.html">
            
                    
                    Sprite.SizeMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.56" data-path="../enums/Sprite.Type.html">
            
                <a href="../enums/Sprite.Type.html">
            
                    
                    Sprite.Type
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.57" data-path="../enums/TaskType.html">
            
                <a href="../enums/TaskType.html">
            
                    
                    TaskType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.58" data-path="../enums/TextAlignment.html">
            
                <a href="../enums/TextAlignment.html">
            
                    
                    TextAlignment
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.59" data-path="../enums/Texture2D.Filter.html">
            
                <a href="../enums/Texture2D.Filter.html">
            
                    
                    Texture2D.Filter
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.60" data-path="../enums/Texture2D.PixelFormat.html">
            
                <a href="../enums/Texture2D.PixelFormat.html">
            
                    
                    Texture2D.PixelFormat
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.61" data-path="../enums/Texture2D.WrapMode.html">
            
                <a href="../enums/Texture2D.WrapMode.html">
            
                    
                    Texture2D.WrapMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.62" data-path="../enums/TiledMap.Orientation.html">
            
                <a href="../enums/TiledMap.Orientation.html">
            
                    
                    TiledMap.Orientation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.63" data-path="../enums/ToolBarPlace.html">
            
                <a href="../enums/ToolBarPlace.html">
            
                    
                    ToolBarPlace
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.64" data-path="../enums/UserActionResultCode.html">
            
                <a href="../enums/UserActionResultCode.html">
            
                    
                    UserActionResultCode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.65" data-path="../enums/VerticalTextAlignment.html">
            
                <a href="../enums/VerticalTextAlignment.html">
            
                    
                    VerticalTextAlignment
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.66" data-path="../enums/VideoPlayer.EventType.html">
            
                <a href="../enums/VideoPlayer.EventType.html">
            
                    
                    VideoPlayer.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.67" data-path="../enums/VideoPlayer.ResourceType.html">
            
                <a href="../enums/VideoPlayer.ResourceType.html">
            
                    
                    VideoPlayer.ResourceType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.68" data-path="../enums/WebView.EventType.html">
            
                <a href="../enums/WebView.EventType.html">
            
                    
                    WebView.EventType
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.69" data-path="../enums/Widget.AlignMode.html">
            
                <a href="../enums/Widget.AlignMode.html">
            
                    
                    Widget.AlignMode
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="3.70" data-path="../enums/WrapMode.html">
            
                <a href="../enums/WrapMode.html">
            
                    
                    WrapMode
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Editor API</li>
        
        
    
        <li class="chapter " data-level="4.1" data-path="../editor/asset-db.html">
            
                <a href="../editor/asset-db.html">
            
                    
                    AssetDB
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Main Process</li>
        
        
    
        <li class="chapter " data-level="5.1" data-path="../editor/main/editor.html">
            
                <a href="../editor/main/editor.html">
            
                    
                    Editor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.2" data-path="../editor/main/console.html">
            
                <a href="../editor/main/console.html">
            
                    
                    Editor (Console Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.3" data-path="../editor/main/app.html">
            
                <a href="../editor/main/app.html">
            
                    
                    Editor.App
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.4" data-path="../editor/main/debugger.html">
            
                <a href="../editor/main/debugger.html">
            
                    
                    Editor.Debugger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.5" data-path="../editor/main/devtools.html">
            
                <a href="../editor/main/devtools.html">
            
                    
                    Editor.DevTools
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.6" data-path="../editor/main/dialog.html">
            
                <a href="../editor/main/dialog.html">
            
                    
                    Editor.Dialog
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.7" data-path="../editor/main/ipc.html">
            
                <a href="../editor/main/ipc.html">
            
                    
                    Editor.Ipc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.8" data-path="../editor/main/main-menu.html">
            
                <a href="../editor/main/main-menu.html">
            
                    
                    Editor.MainMenu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.9" data-path="../editor/main/menu.html">
            
                <a href="../editor/main/menu.html">
            
                    
                    Editor.Menu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.10" data-path="../editor/main/package.html">
            
                <a href="../editor/main/package.html">
            
                    
                    Editor.Package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.11" data-path="../editor/main/panel.html">
            
                <a href="../editor/main/panel.html">
            
                    
                    Editor.Panel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.12" data-path="../editor/main/profile.html">
            
                <a href="../editor/main/profile.html">
            
                    
                    Editor.Profile
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.13" data-path="../editor/main/protocol.html">
            
                <a href="../editor/main/protocol.html">
            
                    
                    Editor.Protocol
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.14" data-path="../editor/main/window.html">
            
                <a href="../editor/main/window.html">
            
                    
                    Editor.Window
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="5.15" data-path="../editor/main/worker.html">
            
                <a href="../editor/main/worker.html">
            
                    
                    Editor.Worker
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Renderer Process (Web Page)</li>
        
        
    
        <li class="chapter " data-level="6.1" data-path="../editor/renderer/editor.html">
            
                <a href="../editor/renderer/editor.html">
            
                    
                    Editor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.2" data-path="../editor/renderer/console.html">
            
                <a href="../editor/renderer/console.html">
            
                    
                    Editor (Console Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.3" data-path="../editor/renderer/audio.md">
            
                <span>
            
                    
                    Editor.Audio
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.4" data-path="../editor/renderer/dialog.html">
            
                <a href="../editor/renderer/dialog.html">
            
                    
                    Editor.Dialog
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.5" data-path="../editor/renderer/ipc.html">
            
                <a href="../editor/renderer/ipc.html">
            
                    
                    Editor.Ipc
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.6" data-path="../editor/renderer/main-menu.html">
            
                <a href="../editor/renderer/main-menu.html">
            
                    
                    Editor.MainMenu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.7" data-path="../editor/renderer/menu.html">
            
                <a href="../editor/renderer/menu.html">
            
                    
                    Editor.Menu
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.8" data-path="../editor/renderer/package.html">
            
                <a href="../editor/renderer/package.html">
            
                    
                    Editor.Package
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.9" data-path="../editor/renderer/panel.html">
            
                <a href="../editor/renderer/panel.html">
            
                    
                    Editor.Panel
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.10" data-path="../editor/renderer/protocol.html">
            
                <a href="../editor/renderer/protocol.html">
            
                    
                    Editor.Protocol
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.11" data-path="../editor/renderer/window.html">
            
                <a href="../editor/renderer/window.html">
            
                    
                    Editor.Window
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.12" data-path="../editor/renderer/ui/dom-utils.html">
            
                <a href="../editor/renderer/ui/dom-utils.html">
            
                    
                    Editor.UI (DOM Utils Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.13" data-path="../editor/renderer/ui/element-utils.html">
            
                <a href="../editor/renderer/ui/element-utils.html">
            
                    
                    Editor.UI (Element Utils Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.14" data-path="../editor/renderer/ui/focus-mgr.html">
            
                <a href="../editor/renderer/ui/focus-mgr.html">
            
                    
                    Editor.UI (Focus Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.15" data-path="../editor/renderer/ui/resource-mgr.html">
            
                <a href="../editor/renderer/ui/resource-mgr.html">
            
                    
                    Editor.UI (Resources Module)
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.16" data-path="../editor/renderer/ui/settings.html">
            
                <a href="../editor/renderer/ui/settings.html">
            
                    
                    Editor.UI.Settings
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.17" data-path="../editor/renderer/ui/dock-utils.html">
            
                <a href="../editor/renderer/ui/dock-utils.html">
            
                    
                    Editor.UI.DockUtils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="6.18" data-path="../editor/renderer/ui/drag-drop.html">
            
                <a href="../editor/renderer/ui/drag-drop.html">
            
                    
                    Editor.UI.DragDrop
            
                </a>
            

            
        </li>
    

    
        
        <li class="header">Modules for Both Processes</li>
        
        
    
        <li class="chapter " data-level="7.1" data-path="../editor/share/editor.html">
            
                <a href="../editor/share/editor.html">
            
                    
                    Editor
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.2" data-path="../editor/share/easing.html">
            
                <a href="../editor/share/easing.html">
            
                    
                    Editor.Easing
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.3" data-path="../editor/share/ipc-listener.html">
            
                <a href="../editor/share/ipc-listener.html">
            
                    
                    Editor.IpcListener
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.4" data-path="../editor/share/js-utils.html">
            
                <a href="../editor/share/js-utils.html">
            
                    
                    Editor.JS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.5" data-path="../editor/share/math.html">
            
                <a href="../editor/share/math.html">
            
                    
                    Editor.Math
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.6" data-path="../editor/share/selection.html">
            
                <a href="../editor/share/selection.html">
            
                    
                    Editor.Selection
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.7" data-path="../editor/share/undo.html">
            
                <a href="../editor/share/undo.html">
            
                    
                    Editor.Undo
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.8" data-path="../editor/share/utils.html">
            
                <a href="../editor/share/utils.html">
            
                    
                    Editor.Utils
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="7.9" data-path="../editor/share/i18n.html">
            
                <a href="../editor/share/i18n.html">
            
                    
                    Editor.i18n
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        

    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
    <div class="page-wrapper" tabindex="-1" role="main">
            

<div class="cocos-navbar navbar-collapse clearfix" id="navbar" role="navigation">
    <ul class="nav navbar-nav">
        <li><a href="http://cocos.com" class="btn" target="_blank"><img src="http://forum.cocos.com/images/logo.png" height="30" /></a></li>
        <li><a href="#" class="btn autohide" onclick="toggleLanguage()">中文</a></li>

    
    <li>
        <a href="#" class="btn autohide"><i class="fa fa-book"></i>Cocos Creator</a>
        <ul class="hovershow">
            
            <li><a href="http://docs.cocos.com/creator/manual/en" class="btn">Manual</a></li>
            
            <li><a href="http://docs.cocos.com/creator/api/en" class="btn">API Ref</a></li>
            
        </ul>
    </li>                
    

    
    <li>
        <a href="#" class="btn autohide"><i class="fa fa-book"></i>Cocos2d-x</a>
        <ul class="hovershow">
            
            <li><a href="http://docs.cocos.com/cocos2d-x/manual/en/" class="btn">Manual</a></li>
            
            <li><a href="http://www.cocos2d-x.org/docs/api-ref/index.html" class="btn">API Ref</a></li>
            
        </ul>
    </li>                
    

    
    <li><a href="http://docs.anysdk.com/" class="btn autohide"><i class="fa fa-book"></i>AnySDK</a></li>
    


    
    <li class="version-link">
        <a class="btn" style="color:#444">Version: <span style="font-weight:bold">2.0 Preview</span></a>
        <ul class="hovershow">
            
            <li><a href="http://docs.cocos.com/creator/api/en" class="btn">Version: <span style="font-weight:bold">1.x</span></a></li>
            
            <li><a href="http://docs.cocos.com/creator/api/2.0/en" class="btn">Version: <span style="font-weight:bold">2.0 Preview</span></a></li>
            
        </ul>
    </li>                
    
      
    </ul>
</div>
<div class="book-header" role="navigation">
    
    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >cc</a>
    </h1>
</div>



        <div class="page-inner">
            
                <section class="normal markdown-section">
                
                <h2 id="cc-module"><code>cc</code> Module</h2>
<p>The main namespace of Cocos2d-JS, all engine core classes, functions, properties and constants are defined in this namespace.</p>
<h3 id="classes">Classes</h3>
<ul>
<li><a href="../classes/_BaseNode.md">_BaseNode</a></li>
<li><a href="../classes/_CallbacksHandler.md">_CallbacksHandler</a></li>
<li><a href="../classes/_JavaScript.md">_JavaScript</a></li>
<li><a href="../classes/_Script.md">_Script</a></li>
<li><a href="../classes/Action.html">Action</a></li>
<li><a href="../classes/ActionInstant.html">ActionInstant</a></li>
<li><a href="../classes/ActionInterval.html">ActionInterval</a></li>
<li><a href="../classes/ActionManager.html">ActionManager</a></li>
<li><a href="../classes/AffineTransform.html">AffineTransform</a></li>
<li><a href="../classes/Animation.html">Animation</a></li>
<li><a href="../classes/AnimationClip.html">AnimationClip</a></li>
<li><a href="../classes/AnimationState.html">AnimationState</a></li>
<li><a href="../classes/Asset.html">Asset</a></li>
<li><a href="../classes/AudioClip.html">AudioClip</a></li>
<li><a href="../classes/audioEngine.html">audioEngine</a></li>
<li><a href="../classes/AudioSource.html">AudioSource</a></li>
<li><a href="../classes/BitmapFont.html">BitmapFont</a></li>
<li><a href="../classes/BlockInputEvents.html">BlockInputEvents</a></li>
<li><a href="../classes/BoxCollider.html">BoxCollider</a></li>
<li><a href="../classes/Button.html">Button</a></li>
<li><a href="../classes/CallbacksInvoker.html">CallbacksInvoker</a></li>
<li><a href="../classes/Camera.html">Camera</a></li>
<li><a href="../classes/Canvas.html">Canvas</a></li>
<li><a href="../classes/CircleCollider.html">CircleCollider</a></li>
<li><a href="../classes/CoffeeScript.html">CoffeeScript</a></li>
<li><a href="../classes/Collider.html">Collider</a></li>
<li><a href="../classes/Collider.Box.html">Collider.Box</a></li>
<li><a href="../classes/Collider.Circle.html">Collider.Circle</a></li>
<li><a href="../classes/Collider.Polygon.html">Collider.Polygon</a></li>
<li><a href="../classes/CollisionManager.html">CollisionManager</a></li>
<li><a href="../classes/Color.html">Color</a></li>
<li><a href="../classes/Component.html">Component</a></li>
<li><a href="../classes/Component.EventHandler.html">Component.EventHandler</a></li>
<li><a href="../classes/constructor.html">constructor</a></li>
<li><a href="../classes/ContainerStrategy.html">ContainerStrategy</a></li>
<li><a href="../classes/ContentStrategy.html">ContentStrategy</a></li>
<li><a href="../classes/Details.html">Details</a></li>
<li><a href="../classes/Director.html">Director</a></li>
<li><a href="../classes/DistanceJoint.html">DistanceJoint</a></li>
<li><a href="../classes/EditBox.html">EditBox</a></li>
<li><a href="../classes/EqualToFrame.html">EqualToFrame</a></li>
<li><a href="../classes/EqualToWindow.html">EqualToWindow</a></li>
<li><a href="../classes/Event.html">Event</a></li>
<li><a href="../classes/Event.EventAcceleration.html">Event.EventAcceleration</a></li>
<li><a href="../classes/Event.EventCustom.html">Event.EventCustom</a></li>
<li><a href="../classes/Event.EventKeyboard.html">Event.EventKeyboard</a></li>
<li><a href="../classes/Event.EventMouse.html">Event.EventMouse</a></li>
<li><a href="../classes/Event.EventTouch.html">Event.EventTouch</a></li>
<li><a href="../classes/EventTarget.html">EventTarget</a></li>
<li><a href="../classes/FiniteTimeAction.html">FiniteTimeAction</a></li>
<li><a href="../classes/Font.html">Font</a></li>
<li><a href="../classes/Game.html">Game</a></li>
<li><a href="../classes/Graphics.html">Graphics</a></li>
<li><a href="../classes/Intersection.html">Intersection</a></li>
<li><a href="../classes/Joint.html">Joint</a></li>
<li><a href="../classes/JsonAsset.html">JsonAsset</a></li>
<li><a href="../classes/Label.html">Label</a></li>
<li><a href="../classes/LabelAtlas.html">LabelAtlas</a></li>
<li><a href="../classes/LabelOutline.html">LabelOutline</a></li>
<li><a href="../classes/Layout.html">Layout</a></li>
<li><a href="../classes/loader.html">loader</a></li>
<li><a href="../classes/LoadingItems.html">LoadingItems</a></li>
<li><a href="../classes/Manifold.html">Manifold</a></li>
<li><a href="../classes/ManifoldPoint.html">ManifoldPoint</a></li>
<li><a href="../classes/Mask.html">Mask</a></li>
<li><a href="../classes/misc.html">misc</a></li>
<li><a href="../classes/MotionStreak.html">MotionStreak</a></li>
<li><a href="../classes/MotorJoint.html">MotorJoint</a></li>
<li><a href="../classes/MouseJoint.html">MouseJoint</a></li>
<li><a href="../classes/Node.html">Node</a></li>
<li><a href="../classes/NodePool.html">NodePool</a></li>
<li><a href="../classes/Object.md">Object</a></li>
<li><a href="../classes/OriginalContainer.html">OriginalContainer</a></li>
<li><a href="../classes/PageView.html">PageView</a></li>
<li><a href="../classes/PageViewIndicator.html">PageViewIndicator</a></li>
<li><a href="../classes/ParticleAsset.html">ParticleAsset</a></li>
<li><a href="../classes/ParticleSystem.html">ParticleSystem</a></li>
<li><a href="../classes/path.html">path</a></li>
<li><a href="../classes/PhysicsBoxCollider.html">PhysicsBoxCollider</a></li>
<li><a href="../classes/PhysicsChainCollider.html">PhysicsChainCollider</a></li>
<li><a href="../classes/PhysicsCircleCollider.html">PhysicsCircleCollider</a></li>
<li><a href="../classes/PhysicsCollider.html">PhysicsCollider</a></li>
<li><a href="../classes/PhysicsContact.html">PhysicsContact</a></li>
<li><a href="../classes/PhysicsImpulse.html">PhysicsImpulse</a></li>
<li><a href="../classes/PhysicsManager.html">PhysicsManager</a></li>
<li><a href="../classes/PhysicsPolygonCollider.html">PhysicsPolygonCollider</a></li>
<li><a href="../classes/PhysicsRayCastResult.html">PhysicsRayCastResult</a></li>
<li><a href="../classes/Pipeline.html">Pipeline</a></li>
<li><a href="../classes/Pipeline.Downloader.html">Pipeline.Downloader</a></li>
<li><a href="../classes/Pipeline.Loader.html">Pipeline.Loader</a></li>
<li><a href="../classes/Playable.html">Playable</a></li>
<li><a href="../classes/PolygonCollider.html">PolygonCollider</a></li>
<li><a href="../classes/Prefab.html">Prefab</a></li>
<li><a href="../classes/PrismaticJoint.html">PrismaticJoint</a></li>
<li><a href="../classes/PrivateNode.html">PrivateNode</a></li>
<li><a href="../classes/ProgressBar.html">ProgressBar</a></li>
<li><a href="../classes/ProportionalToFrame.html">ProportionalToFrame</a></li>
<li><a href="../classes/ProportionalToWindow.html">ProportionalToWindow</a></li>
<li><a href="../classes/Quat.html">Quat</a></li>
<li><a href="../classes/RawAsset.html">RawAsset</a></li>
<li><a href="../classes/Rect.html">Rect</a></li>
<li><a href="../classes/RenderComponent.html">RenderComponent</a></li>
<li><a href="../classes/RenderTexture.html">RenderTexture</a></li>
<li><a href="../classes/ResolutionPolicy.html">ResolutionPolicy</a></li>
<li><a href="../classes/RevoluteJoint.html">RevoluteJoint</a></li>
<li><a href="../classes/RichText.html">RichText</a></li>
<li><a href="../classes/RigidBody.html">RigidBody</a></li>
<li><a href="../classes/RopeJoint.html">RopeJoint</a></li>
<li><a href="../classes/Scene.html">Scene</a></li>
<li><a href="../classes/SceneAsset.html">SceneAsset</a></li>
<li><a href="../classes/Scheduler.html">Scheduler</a></li>
<li><a href="../classes/screen.html">screen</a></li>
<li><a href="../classes/Scrollbar.html">Scrollbar</a></li>
<li><a href="../classes/ScrollView.html">ScrollView</a></li>
<li><a href="../classes/Size.html">Size</a></li>
<li><a href="../classes/Slider.html">Slider</a></li>
<li><a href="../classes/Sprite.html">Sprite</a></li>
<li><a href="../classes/SpriteAtlas.html">SpriteAtlas</a></li>
<li><a href="../classes/SpriteFrame.html">SpriteFrame</a></li>
<li><a href="../classes/sys.html">sys</a></li>
<li><a href="../classes/SystemEvent.html">SystemEvent</a></li>
<li><a href="../classes/SystemEvent.EventType.html">SystemEvent.EventType</a></li>
<li><a href="../classes/TextAsset.html">TextAsset</a></li>
<li><a href="../classes/Texture2D.html">Texture2D</a></li>
<li><a href="../classes/TiledLayer.html">TiledLayer</a></li>
<li><a href="../classes/TiledMap.html">TiledMap</a></li>
<li><a href="../classes/TiledMapAsset.html">TiledMapAsset</a></li>
<li><a href="../classes/TiledObjectGroup.html">TiledObjectGroup</a></li>
<li><a href="../classes/TiledTile.html">TiledTile</a></li>
<li><a href="../classes/Toggle.html">Toggle</a></li>
<li><a href="../classes/ToggleContainer.html">ToggleContainer</a></li>
<li><a href="../classes/ToggleGroup.html">ToggleGroup</a></li>
<li><a href="../classes/Touch.html">Touch</a></li>
<li><a href="../classes/TTFFont.html">TTFFont</a></li>
<li><a href="../classes/TypeScript.html">TypeScript</a></li>
<li><a href="../classes/url.html">url</a></li>
<li><a href="../classes/ValueType.html">ValueType</a></li>
<li><a href="../classes/Vec2.html">Vec2</a></li>
<li><a href="../classes/Vec3.html">Vec3</a></li>
<li><a href="../classes/VideoPlayer.html">VideoPlayer</a></li>
<li><a href="../classes/View.html">View</a></li>
<li><a href="../classes/ViewGroup.html">ViewGroup</a></li>
<li><a href="../classes/visibleRect.html">visibleRect</a></li>
<li><a href="../classes/WebView.html">WebView</a></li>
<li><a href="../classes/WeldJoint.html">WeldJoint</a></li>
<li><a href="../classes/WheelJoint.html">WheelJoint</a></li>
<li><a href="../classes/Widget.html">Widget</a></li>
<li><a href="../classes/WorldManifold.html">WorldManifold</a></li>
</ul>
<h3 id="enums">Enums</h3>
<h3 id="index">Index</h3>
<h5 id="properties">Properties</h5>
<ul>
<li><a href="#engineversion"><code>ENGINE_VERSION</code></a> <code>String</code> </li>
<li><a href="#engineversion"><code>ENGINE_VERSION</code></a> <code>String</code> </li>
<li><a href="#director"><code>director</code></a> <code>Director</code> </li>
<li><a href="#view"><code>view</code></a> <code>View</code> </li>
<li><a href="#winsize"><code>winSize</code></a> <code>Size</code> </li>
<li><a href="#game"><code>game</code></a> <code>Game</code> </li>
<li><a href="#systemevent"><code>systemEvent</code></a> <code>SystemEvent</code> </li>
<li><a href="#integer"><code>Integer</code></a> <code>string</code> </li>
<li><a href="#float"><code>Float</code></a> <code>string</code> </li>
<li><a href="#boolean"><code>Boolean</code></a> <code>string</code> </li>
<li><a href="#string"><code>String</code></a> <code>string</code> </li>
</ul>
<h5 id="methods">Methods</h5>
<ul>
<li><a href="#initdebugsetting"><code>_initDebugSetting</code></a> </li>
<li><a href="#error"><code>error</code></a> </li>
<li><a href="#warn"><code>warn</code></a> </li>
<li><a href="#log"><code>log</code></a> </li>
<li><a href="#info"><code>info</code></a> </li>
<li><a href="#speed"><code>speed</code></a> </li>
<li><a href="#follow"><code>follow</code></a> </li>
<li><a href="#setpoints"><code>setPoints</code></a> </li>
<li><a href="#cardinalsplineto"><code>cardinalSplineTo</code></a> </li>
<li><a href="#updateposition"><code>updatePosition</code></a> </li>
<li><a href="#cardinalsplineby"><code>cardinalSplineBy</code></a> </li>
<li><a href="#catmullromto"><code>catmullRomTo</code></a> </li>
<li><a href="#catmullromby"><code>catmullRomBy</code></a> </li>
<li><a href="#easein"><code>easeIn</code></a> </li>
<li><a href="#easeout"><code>easeOut</code></a> </li>
<li><a href="#easeinout"><code>easeInOut</code></a> </li>
<li><a href="#easeexponentialin"><code>easeExponentialIn</code></a> </li>
<li><a href="#easeexponentialout"><code>easeExponentialOut</code></a> </li>
<li><a href="#easeexponentialinout"><code>easeExponentialInOut</code></a> </li>
<li><a href="#easesinein"><code>easeSineIn</code></a> </li>
<li><a href="#easesineout"><code>easeSineOut</code></a> </li>
<li><a href="#easesineinout"><code>easeSineInOut</code></a> </li>
<li><a href="#easeelasticin"><code>easeElasticIn</code></a> </li>
<li><a href="#easeelasticout"><code>easeElasticOut</code></a> </li>
<li><a href="#easeelasticinout"><code>easeElasticInOut</code></a> </li>
<li><a href="#easebouncein"><code>easeBounceIn</code></a> </li>
<li><a href="#easebounceout"><code>easeBounceOut</code></a> </li>
<li><a href="#easebounceinout"><code>easeBounceInOut</code></a> </li>
<li><a href="#easebackin"><code>easeBackIn</code></a> </li>
<li><a href="#easebackout"><code>easeBackOut</code></a> </li>
<li><a href="#easebackinout"><code>easeBackInOut</code></a> </li>
<li><a href="#easebezieraction"><code>easeBezierAction</code></a> </li>
<li><a href="#easequadraticactionin"><code>easeQuadraticActionIn</code></a> </li>
<li><a href="#easequadraticactionout"><code>easeQuadraticActionOut</code></a> </li>
<li><a href="#easequadraticactioninout"><code>easeQuadraticActionInOut</code></a> </li>
<li><a href="#easequarticactionin"><code>easeQuarticActionIn</code></a> </li>
<li><a href="#easequarticactionout"><code>easeQuarticActionOut</code></a> </li>
<li><a href="#easequarticactioninout"><code>easeQuarticActionInOut</code></a> </li>
<li><a href="#easequinticactionin"><code>easeQuinticActionIn</code></a> </li>
<li><a href="#easequinticactionout"><code>easeQuinticActionOut</code></a> </li>
<li><a href="#easequinticactioninout"><code>easeQuinticActionInOut</code></a> </li>
<li><a href="#easecircleactionin"><code>easeCircleActionIn</code></a> </li>
<li><a href="#easecircleactionout"><code>easeCircleActionOut</code></a> </li>
<li><a href="#easecircleactioninout"><code>easeCircleActionInOut</code></a> </li>
<li><a href="#easecubicactionin"><code>easeCubicActionIn</code></a> </li>
<li><a href="#easecubicactionout"><code>easeCubicActionOut</code></a> </li>
<li><a href="#easecubicactioninout"><code>easeCubicActionInOut</code></a> </li>
<li><a href="#show"><code>show</code></a> </li>
<li><a href="#hide"><code>hide</code></a> </li>
<li><a href="#togglevisibility"><code>toggleVisibility</code></a> </li>
<li><a href="#removeself"><code>removeSelf</code></a> </li>
<li><a href="#flipx"><code>flipX</code></a> </li>
<li><a href="#flipy"><code>flipY</code></a> </li>
<li><a href="#place"><code>place</code></a> </li>
<li><a href="#callfunc"><code>callFunc</code></a> </li>
<li><a href="#sequence"><code>sequence</code></a> </li>
<li><a href="#repeat"><code>repeat</code></a> </li>
<li><a href="#repeatforever"><code>repeatForever</code></a> </li>
<li><a href="#spawn"><code>spawn</code></a> </li>
<li><a href="#rotateto"><code>rotateTo</code></a> </li>
<li><a href="#rotateby"><code>rotateBy</code></a> </li>
<li><a href="#moveby"><code>moveBy</code></a> </li>
<li><a href="#moveto"><code>moveTo</code></a> </li>
<li><a href="#skewto"><code>skewTo</code></a> </li>
<li><a href="#skewby"><code>skewBy</code></a> </li>
<li><a href="#jumpby"><code>jumpBy</code></a> </li>
<li><a href="#jumpto"><code>jumpTo</code></a> </li>
<li><a href="#bezierby"><code>bezierBy</code></a> </li>
<li><a href="#bezierto"><code>bezierTo</code></a> </li>
<li><a href="#scaleto"><code>scaleTo</code></a> </li>
<li><a href="#scaleby"><code>scaleBy</code></a> </li>
<li><a href="#blink"><code>blink</code></a> </li>
<li><a href="#fadeto"><code>fadeTo</code></a> </li>
<li><a href="#fadein"><code>fadeIn</code></a> </li>
<li><a href="#fadeout"><code>fadeOut</code></a> </li>
<li><a href="#tintto"><code>tintTo</code></a> </li>
<li><a href="#tintby"><code>tintBy</code></a> </li>
<li><a href="#delaytime"><code>delayTime</code></a> </li>
<li><a href="#reversetime"><code>reverseTime</code></a> </li>
<li><a href="#targetedaction"><code>targetedAction</code></a> </li>
<li><a href="#color"><code>color</code></a> </li>
<li><a href="#rect"><code>rect</code></a> </li>
<li><a href="#size"><code>size</code></a> </li>
<li><a href="#v2"><code>v2</code></a> </li>
<li><a href="#p"><code>p</code></a> </li>
<li><a href="#class"><code>Class</code></a> </li>
<li><a href="#isccclass"><code>_isCCClass</code></a> </li>
<li><a href="#enum"><code>Enum</code></a> </li>
<li><a href="#getlist"><code>getList</code></a> </li>
<li><a href="#handletouchesbegin"><code>handleTouchesBegin</code></a> </li>
<li><a href="#handletouchesmove"><code>handleTouchesMove</code></a> </li>
<li><a href="#handletouchesend"><code>handleTouchesEnd</code></a> </li>
<li><a href="#handletouchescancel"><code>handleTouchesCancel</code></a> </li>
<li><a href="#getsetoftouchesendorcancel"><code>getSetOfTouchesEndOrCancel</code></a> </li>
<li><a href="#gethtmlelementposition"><code>getHTMLElementPosition</code></a> </li>
<li><a href="#getpretouch"><code>getPreTouch</code></a> </li>
<li><a href="#setpretouch"><code>setPreTouch</code></a> </li>
<li><a href="#gettouchbyxy"><code>getTouchByXY</code></a> </li>
<li><a href="#gettouchbyxy"><code>getTouchByXY</code></a> </li>
<li><a href="#getpointbyevent"><code>getPointByEvent</code></a> </li>
<li><a href="#gettouchesbyevent"><code>getTouchesByEvent</code></a> </li>
<li><a href="#registersystemevent"><code>registerSystemEvent</code></a> </li>
<li><a href="#update"><code>update</code></a> </li>
<li><a href="#isvalid"><code>isValid</code></a> </li>
<li><a href="#deserialize"><code>deserialize</code></a> </li>
<li><a href="#instantiate"><code>instantiate</code></a> </li>
<li><a href="#find"><code>find</code></a> </li>
</ul>
<h3 id="details">Details</h3>
<h4 id="properties">Properties</h4>
<h5 id="engineversion">ENGINE_VERSION</h5>
<blockquote>
<p>The current version of Cocos2d being used.<br>
Please DO NOT remove this String, it is an important flag for bug tracking.<br>
If you post a bug to forum, please attach this flag.</p>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/CCBoot.js#L30" target="_blank">CCBoot.js:30</a></td>
</tr>
</tbody>
</table>
<h5 id="engineversion">ENGINE_VERSION</h5>
<blockquote>
<p>The current version of Cocos2d being used.<br>
Please DO NOT remove this String, it is an important flag for bug tracking.<br>
If you post a bug to forum, please attach this flag.</p>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/predefine.js#L160" target="_blank">predefine.js:160</a></td>
</tr>
</tbody>
</table>
<h5 id="director">director</h5>
<blockquote>
<p>Director</p>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="../classes/Director.html" class="crosslink">Director</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/CCGame.js#L416" target="_blank">cocos2d/core/CCGame.js:416</a></td>
</tr>
</tbody>
</table>
<h5 id="view">view</h5>
<blockquote>
<p>cc.view is the shared view object.</p>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="../classes/View.html" class="crosslink">View</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/CCGame.js#L426" target="_blank">cocos2d/core/CCGame.js:426</a></td>
</tr>
</tbody>
</table>
<h5 id="winsize">winSize</h5>
<blockquote>
<p>cc.winSize is the alias object for the size of the current game window.</p>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="../classes/Size.html" class="crosslink">Size</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/CCGame.js#L436" target="_blank">cocos2d/core/CCGame.js:436</a></td>
</tr>
</tbody>
</table>
<h5 id="game">game</h5>
<blockquote>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="../classes/Game.html" class="crosslink">Game</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/CCGame.js#L892" target="_blank">cocos2d/core/CCGame.js:892</a></td>
</tr>
</tbody>
</table>
<h5 id="systemevent">systemEvent</h5>
<blockquote>
<p>The System event singleton for global usage</p>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="../classes/SystemEvent.html" class="crosslink">SystemEvent</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/event/system-event.js#L173" target="_blank">cocos2d/core/event/system-event.js:173</a></td>
</tr>
</tbody>
</table>
<h5 id="integer">Integer</h5>
<blockquote>
<p>Specify that the input value must be integer in Inspector.
Also used to indicates that the elements in array should be type integer.</p>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">string</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/attribute.js#L153" target="_blank">cocos2d/core/platform/attribute.js:153</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// in cc.Class</span>
member: {
    <span class="hljs-keyword">default</span>: [],
    type: cc.Integer
}
<span class="hljs-comment">// ES6 ccclass</span>
</code></pre>
<h5 id="float">Float</h5>
<blockquote>
<p>Indicates that the elements in array should be type double.</p>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">string</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/attribute.js#L172" target="_blank">cocos2d/core/platform/attribute.js:172</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// in cc.Class</span>
member: {
    <span class="hljs-keyword">default</span>: [],
    type: cc.Float
}
<span class="hljs-comment">// ES6 ccclass</span>
</code></pre>
<h5 id="boolean">Boolean</h5>
<blockquote>
<p>Indicates that the elements in array should be type boolean.</p>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">string</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/attribute.js#L197" target="_blank">cocos2d/core/platform/attribute.js:197</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// in cc.Class</span>
member: {
    <span class="hljs-keyword">default</span>: [],
    type: cc.Boolean
}
<span class="hljs-comment">// ES6 ccclass</span>
</code></pre>
<h5 id="string">String</h5>
<blockquote>
<p>Indicates that the elements in array should be type string.</p>
</blockquote>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Type</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">string</a></td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/attribute.js#L215" target="_blank">cocos2d/core/platform/attribute.js:215</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// in cc.Class</span>
member: {
    <span class="hljs-keyword">default</span>: [],
    type: cc.String
}
<span class="hljs-comment">// ES6 ccclass</span>
</code></pre>
<!-- Method Block -->
<h4 id="methods">Methods</h4>
<h5 id="initdebugsetting">_initDebugSetting</h5>
<p>Init Debug setting.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/CCDebugger.js#L103" target="_blank">CCDebugger.js:103</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>mode</code> <a href="../enums/DebugMode.html" class="crosslink">DebugMode</a> </li>
</ul>
<h5 id="error">error</h5>
<p>Outputs an error message to the Cocos Creator Console (editor) or Web Console (runtime).<br></p>
<ul>
<li>In Cocos Creator, error is red.<br></li>
<li>In Chrome, error have a red icon along with red message text.<br></li>
</ul>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/CCDebugger.js#L181" target="_blank">CCDebugger.js:181</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>msg</code> Any A JavaScript string containing zero or more substitution strings.</li>
<li><code>subst</code> Any JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.</li>
</ul>
<h5 id="warn">warn</h5>
<p>Outputs a warning message to the Cocos Creator Console (editor) or Web Console (runtime).</p>
<ul>
<li>In Cocos Creator, warning is yellow.</li>
<li>In Chrome, warning have a yellow warning icon with the message text.</li>
</ul>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/CCDebugger.js#L225" target="_blank">CCDebugger.js:225</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>msg</code> Any A JavaScript string containing zero or more substitution strings.</li>
<li><code>subst</code> Any JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.</li>
</ul>
<h5 id="log">log</h5>
<p>Outputs a message to the Cocos Creator Console (editor) or Web Console (runtime).</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/CCDebugger.js#L256" target="_blank">CCDebugger.js:256</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>msg</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | Any A JavaScript string containing zero or more substitution strings.</li>
<li><code>subst</code> Any JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.</li>
</ul>
<h5 id="info">info</h5>
<p>Outputs an informational message to the Cocos Creator Console (editor) or Web Console (runtime).</p>
<ul>
<li>In Cocos Creator, info is blue.</li>
<li>In Firefox and Chrome, a small &quot;i&quot; icon is displayed next to these items in the Web Console&apos;s log.</li>
</ul>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/CCDebugger.js#L282" target="_blank">CCDebugger.js:282</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>msg</code> Any A JavaScript string containing zero or more substitution strings.</li>
<li><code>subst</code> Any JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.</li>
</ul>
<h5 id="speed">speed</h5>
<p>Creates the speed action which changes the speed of an action, making it take longer (speed &gt; 1)
or less (speed &lt; 1) time. <br>
Useful to simulate &apos;slow motion&apos; or &apos;fast forward&apos; effect.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Action.html" class="crosslink">Action</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCAction.js#L370" target="_blank">cocos2d/actions/CCAction.js:370</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>action</code> <a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </li>
<li><code>speed</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// change the target action speed;</span>
<span class="hljs-keyword">var</span> action = cc.scaleTo(<span class="hljs-number">0.2</span>, <span class="hljs-number">1</span>, <span class="hljs-number">0.6</span>);
<span class="hljs-keyword">var</span> newAction = cc.speed(action, <span class="hljs-number">0.5</span>);
</code></pre>
<h5 id="follow">follow</h5>
<p>Create a follow action which makes its target follows another node.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Action.html" class="crosslink">Action</a> | Null </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCAction.js#L554" target="_blank">cocos2d/actions/CCAction.js:554</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>followedNode</code> <a href="../classes/Node.html" class="crosslink">Node</a> </li>
<li><code>rect</code> <a href="../classes/Rect.html" class="crosslink">Rect</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-comment">// creates the action with a set boundary</span>
<span class="hljs-keyword">var</span> followAction = cc.follow(targetNode, cc.rect(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>, screenWidth * <span class="hljs-number">2</span> - <span class="hljs-number">100</span>, screenHeight));
node.runAction(followAction);

<span class="hljs-comment">// creates the action with no boundary set</span>
<span class="hljs-keyword">var</span> followAction = cc.follow(targetNode);
node.runAction(followAction);
</code></pre>
<h5 id="setpoints">setPoints</h5>
<p>Points setter</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionCatmullRom.js#L224" target="_blank">cocos2d/actions/CCActionCatmullRom.js:224</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>points</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </li>
</ul>
<h5 id="cardinalsplineto">cardinalSplineTo</h5>
<p>Creates an action with a Cardinal Spline array of points and tension.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionCatmullRom.js#L234" target="_blank">cocos2d/actions/CCActionCatmullRom.js:234</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>points</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> array of control points</li>
<li><code>tension</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//create a cc.CardinalSplineTo</span>
<span class="hljs-keyword">var</span> action1 = cc.cardinalSplineTo(<span class="hljs-number">3</span>, array, <span class="hljs-number">0</span>);
</code></pre>
<h5 id="updateposition">updatePosition</h5>
<p>update position of target</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionCatmullRom.js#L317" target="_blank">cocos2d/actions/CCActionCatmullRom.js:317</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>newPos</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> </li>
</ul>
<h5 id="cardinalsplineby">cardinalSplineBy</h5>
<p>Creates an action with a Cardinal Spline array of points and tension.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionCatmullRom.js#L338" target="_blank">cocos2d/actions/CCActionCatmullRom.js:338</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>points</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </li>
<li><code>tension</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="catmullromto">catmullRomTo</h5>
<p>Creates an action with a Cardinal Spline array of points and tension.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionCatmullRom.js#L386" target="_blank">cocos2d/actions/CCActionCatmullRom.js:386</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>dt</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>points</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-keyword">var</span> action1 = cc.catmullRomTo(<span class="hljs-number">3</span>, array);
</code></pre>
<h5 id="catmullromby">catmullRomBy</h5>
<p>Creates an action with a Cardinal Spline array of points and tension.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionCatmullRom.js#L435" target="_blank">cocos2d/actions/CCActionCatmullRom.js:435</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>dt</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>points</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-keyword">var</span> action1 = cc.catmullRomBy(<span class="hljs-number">3</span>, array);
</code></pre>
<h5 id="easein">easeIn</h5>
<p>Creates the action easing object with the rate parameter. <br>
From slow to fast.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L35" target="_blank">cocos2d/actions/CCActionEase.js:35</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>rate</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js">action.easing(cc.easeIn(<span class="hljs-number">3.0</span>));
</code></pre>
<h5 id="easeout">easeOut</h5>
<p>Creates the action easing object with the rate parameter. <br>
From fast to slow.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L58" target="_blank">cocos2d/actions/CCActionEase.js:58</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>rate</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js">action.easing(cc.easeOut(<span class="hljs-number">3.0</span>));
</code></pre>
<h5 id="easeinout">easeInOut</h5>
<p>Creates the action easing object with the rate parameter. <br>
Slow to fast then to slow.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L81" target="_blank">cocos2d/actions/CCActionEase.js:81</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>rate</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js">action.easing(cc.easeInOut(<span class="hljs-number">3.0</span>));
</code></pre>
<h5 id="easeexponentialin">easeExponentialIn</h5>
<p>Creates the action easing object with the rate parameter. <br>
Reference easeInExpo: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L109" target="_blank">cocos2d/actions/CCActionEase.js:109</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js">action.easing(cc.easeExponentialIn());
</code></pre>
<h5 id="easeexponentialout">easeExponentialOut</h5>
<p>Creates the action easing object. <br>
Reference easeOutExpo: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L135" target="_blank">cocos2d/actions/CCActionEase.js:135</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js">action.easing(cc.easeExponentialOut());
</code></pre>
<h5 id="easeexponentialinout">easeExponentialInOut</h5>
<p>Creates an EaseExponentialInOut action easing object. <br>
Reference easeInOutExpo: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L161" target="_blank">cocos2d/actions/CCActionEase.js:161</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js">action.easing(cc.easeExponentialInOut());
</code></pre>
<h5 id="easesinein">easeSineIn</h5>
<p>Creates an EaseSineIn action. <br>
Reference easeInSine: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L194" target="_blank">cocos2d/actions/CCActionEase.js:194</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js">action.easing(cc.easeSineIn());
</code></pre>
<h5 id="easesineout">easeSineOut</h5>
<p>Creates an EaseSineOut action easing object. <br>
Reference easeOutSine: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L220" target="_blank">cocos2d/actions/CCActionEase.js:220</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js">action.easing(cc.easeSineOut());
</code></pre>
<h5 id="easesineinout">easeSineInOut</h5>
<p>Creates the action easing object. <br>
Reference easeInOutSine: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L246" target="_blank">cocos2d/actions/CCActionEase.js:246</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js">action.easing(cc.easeSineInOut());
</code></pre>
<h5 id="easeelasticin">easeElasticIn</h5>
<p>Creates the action easing object with the period in radians (default is 0.3). <br>
Reference easeInElastic: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L276" target="_blank">cocos2d/actions/CCActionEase.js:276</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>period</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
action.easing(cc.easeElasticIn(<span class="hljs-number">3.0</span>));
</code></pre>
<h5 id="easeelasticout">easeElasticOut</h5>
<p>Creates the action easing object with the period in radians (default is 0.3). <br>
Reference easeOutElastic: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L322" target="_blank">cocos2d/actions/CCActionEase.js:322</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>period</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
action.easing(cc.easeElasticOut(<span class="hljs-number">3.0</span>));
</code></pre>
<h5 id="easeelasticinout">easeElasticInOut</h5>
<p>Creates the action easing object with the period in radians (default is 0.3). <br>
Reference easeInOutElastic: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L362" target="_blank">cocos2d/actions/CCActionEase.js:362</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>period</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
action.easing(cc.easeElasticInOut(<span class="hljs-number">3.0</span>));
</code></pre>
<h5 id="easebouncein">easeBounceIn</h5>
<p>Creates the action easing object. <br>
Eased bounce effect at the beginning.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L434" target="_blank">cocos2d/actions/CCActionEase.js:434</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
action.easing(cc.easeBounceIn());
</code></pre>
<h5 id="easebounceout">easeBounceOut</h5>
<p>Creates the action easing object. <br>
Eased bounce effect at the ending.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L451" target="_blank">cocos2d/actions/CCActionEase.js:451</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
action.easing(cc.easeBounceOut());
</code></pre>
<h5 id="easebounceinout">easeBounceInOut</h5>
<p>Creates the action easing object. <br>
Eased bounce effect at the begining and ending.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L476" target="_blank">cocos2d/actions/CCActionEase.js:476</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
action.easing(cc.easeBounceInOut());
</code></pre>
<h5 id="easebackin">easeBackIn</h5>
<p>Creates the action easing object. <br>
In the opposite direction to move slowly, and then accelerated to the right direction.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L508" target="_blank">cocos2d/actions/CCActionEase.js:508</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
action.easing(cc.easeBackIn());
</code></pre>
<h5 id="easebackout">easeBackOut</h5>
<p>Creates the action easing object. <br>
Fast moving more than the finish, and then slowly back to the finish.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L534" target="_blank">cocos2d/actions/CCActionEase.js:534</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
action.easing(cc.easeBackOut());
</code></pre>
<h5 id="easebackinout">easeBackInOut</h5>
<p>Creates the action easing object. <br>
Begining of cc.EaseBackIn. Ending of cc.EaseBackOut.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L561" target="_blank">cocos2d/actions/CCActionEase.js:561</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
action.easing(cc.easeBackInOut());
</code></pre>
<h5 id="easebezieraction">easeBezierAction</h5>
<p>Creates the action easing object. <br>
Into the 4 reference point. <br>
To calculate the motion curve.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L592" target="_blank">cocos2d/actions/CCActionEase.js:592</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>p0</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> The first bezier parameter</li>
<li><code>p1</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> The second bezier parameter</li>
<li><code>p2</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> The third bezier parameter</li>
<li><code>p3</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> The fourth bezier parameter</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
action.easing(cc.easeBezierAction(<span class="hljs-number">0.5</span>, <span class="hljs-number">0.5</span>, <span class="hljs-number">1.0</span>, <span class="hljs-number">1.0</span>));
</code></pre>
<h5 id="easequadraticactionin">easeQuadraticActionIn</h5>
<p>Creates the action easing object. <br>
Reference easeInQuad: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L621" target="_blank">cocos2d/actions/CCActionEase.js:621</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeQuadraticActionIn());
</code></pre>
<h5 id="easequadraticactionout">easeQuadraticActionOut</h5>
<p>Creates the action easing object. <br>
Reference easeOutQuad: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L648" target="_blank">cocos2d/actions/CCActionEase.js:648</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeQuadraticActionOut());
</code></pre>
<h5 id="easequadraticactioninout">easeQuadraticActionInOut</h5>
<p>Creates the action easing object. <br>
Reference easeInOutQuad: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L675" target="_blank">cocos2d/actions/CCActionEase.js:675</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeQuadraticActionInOut());
</code></pre>
<h5 id="easequarticactionin">easeQuarticActionIn</h5>
<p>Creates the action easing object. <br>
Reference easeIntQuart: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L710" target="_blank">cocos2d/actions/CCActionEase.js:710</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeQuarticActionIn());
</code></pre>
<h5 id="easequarticactionout">easeQuarticActionOut</h5>
<p>Creates the action easing object. <br>
Reference easeOutQuart: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L737" target="_blank">cocos2d/actions/CCActionEase.js:737</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.QuarticActionOut());
</code></pre>
<h5 id="easequarticactioninout">easeQuarticActionInOut</h5>
<p>Creates the action easing object.  <br>
Reference easeInOutQuart: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L765" target="_blank">cocos2d/actions/CCActionEase.js:765</a></td>
</tr>
</tbody>
</table>
<h5 id="easequinticactionin">easeQuinticActionIn</h5>
<p>Creates the action easing object. <br>
Reference easeInQuint: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L793" target="_blank">cocos2d/actions/CCActionEase.js:793</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeQuinticActionIn());
</code></pre>
<h5 id="easequinticactionout">easeQuinticActionOut</h5>
<p>Creates the action easing object. <br>
Reference easeOutQuint: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L820" target="_blank">cocos2d/actions/CCActionEase.js:820</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeQuadraticActionOut());
</code></pre>
<h5 id="easequinticactioninout">easeQuinticActionInOut</h5>
<p>Creates the action easing object. <br>
Reference easeInOutQuint: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L848" target="_blank">cocos2d/actions/CCActionEase.js:848</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeQuinticActionInOut());
</code></pre>
<h5 id="easecircleactionin">easeCircleActionIn</h5>
<p>Creates the action easing object. <br>
Reference easeInCirc: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L879" target="_blank">cocos2d/actions/CCActionEase.js:879</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeCircleActionIn());
</code></pre>
<h5 id="easecircleactionout">easeCircleActionOut</h5>
<p>Creates the action easing object. <br>
Reference easeOutCirc: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L906" target="_blank">cocos2d/actions/CCActionEase.js:906</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
actioneasing(cc.easeCircleActionOut());
</code></pre>
<h5 id="easecircleactioninout">easeCircleActionInOut</h5>
<p>Creates the action easing object. <br>
Reference easeInOutCirc: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L934" target="_blank">cocos2d/actions/CCActionEase.js:934</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeCircleActionInOut());
</code></pre>
<h5 id="easecubicactionin">easeCubicActionIn</h5>
<p>Creates the action easing object. <br>
Reference easeInCubic: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L965" target="_blank">cocos2d/actions/CCActionEase.js:965</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeCubicActionIn());
</code></pre>
<h5 id="easecubicactionout">easeCubicActionOut</h5>
<p>Creates the action easing object. <br>
Reference easeOutCubic: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L992" target="_blank">cocos2d/actions/CCActionEase.js:992</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
action.easing(cc.easeCubicActionOut());
</code></pre>
<h5 id="easecubicactioninout">easeCubicActionInOut</h5>
<p>Creates the action easing object. <br>
Reference easeInOutCubic: <br>
<a href="http://www.zhihu.com/question/21981571/answer/19925418" target="_blank">http://www.zhihu.com/question/21981571/answer/19925418</a></p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionEase.js#L1020" target="_blank">cocos2d/actions/CCActionEase.js:1020</a></td>
</tr>
</tbody>
</table>
<h5 id="show">show</h5>
<p>Show the Node.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInstant.html" class="crosslink">ActionInstant</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInstant.js#L102" target="_blank">cocos2d/actions/CCActionInstant.js:102</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> showAction = cc.show();
</code></pre>
<h5 id="hide">hide</h5>
<p>Hide the node.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInstant.html" class="crosslink">ActionInstant</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInstant.js#L141" target="_blank">cocos2d/actions/CCActionInstant.js:141</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> hideAction = cc.hide();
</code></pre>
<h5 id="togglevisibility">toggleVisibility</h5>
<p>Toggles the visibility of a node.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInstant.html" class="crosslink">ActionInstant</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInstant.js#L180" target="_blank">cocos2d/actions/CCActionInstant.js:180</a></td>
</tr>
</tbody>
</table>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> toggleVisibilityAction = cc.toggleVisibility();
</code></pre>
<h5 id="removeself">removeSelf</h5>
<p>Create a RemoveSelf object with a flag indicate whether the target should be cleaned up while removing.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInstant.html" class="crosslink">ActionInstant</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInstant.js#L230" target="_blank">cocos2d/actions/CCActionInstant.js:230</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>isNeedCleanUp</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> removeSelfAction = cc.removeSelf();
</code></pre>
<h5 id="flipx">flipX</h5>
<p>Create a FlipX action to flip or unflip the target.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInstant.html" class="crosslink">ActionInstant</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInstant.js#L288" target="_blank">cocos2d/actions/CCActionInstant.js:288</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>flip</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> Indicate whether the target should be flipped or not</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-keyword">var</span> flipXAction = cc.flipX(<span class="hljs-literal">true</span>);
</code></pre>
<h5 id="flipy">flipY</h5>
<p>Create a FlipY action to flip or unflip the target.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInstant.html" class="crosslink">ActionInstant</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInstant.js#L343" target="_blank">cocos2d/actions/CCActionInstant.js:343</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>flip</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-keyword">var</span> flipYAction = cc.flipY(<span class="hljs-literal">true</span>);
</code></pre>
<h5 id="place">place</h5>
<p>Creates a Place action with a position.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInstant.html" class="crosslink">ActionInstant</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInstant.js#L406" target="_blank">cocos2d/actions/CCActionInstant.js:406</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>pos</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>y</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> placeAction = cc.place(cc.v2(<span class="hljs-number">200</span>, <span class="hljs-number">200</span>));
<span class="hljs-keyword">var</span> placeAction = cc.place(<span class="hljs-number">200</span>, <span class="hljs-number">200</span>);
</code></pre>
<h5 id="callfunc">callFunc</h5>
<p>Creates the action with the callback.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInstant.html" class="crosslink">ActionInstant</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInstant.js#L516" target="_blank">cocos2d/actions/CCActionInstant.js:516</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>selector</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">function</a> </li>
<li><code>selectorTarget</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">object</a> </li>
<li><code>data</code> Any data for function, it accepts all data types.</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-comment">// CallFunc without data</span>
<span class="hljs-keyword">var</span> finish = cc.callFunc(<span class="hljs-keyword">this</span>.removeSprite, <span class="hljs-keyword">this</span>);

<span class="hljs-comment">// CallFunc with data</span>
<span class="hljs-keyword">var</span> finish = cc.callFunc(<span class="hljs-keyword">this</span>.removeFromParentAndCleanup, <span class="hljs-keyword">this</span>._grossini,  <span class="hljs-literal">true</span>);
</code></pre>
<h5 id="sequence">sequence</h5>
<p>Helper constructor to create an array of sequenceable actions
The created action will run actions sequentially, one after another.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L436" target="_blank">cocos2d/actions/CCActionInterval.js:436</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>actionOrActionArray</code> <a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction</a> | <a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction[]</a> </li>
<li><code>tempArray</code> <a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-comment">// create sequence with actions</span>
<span class="hljs-keyword">var</span> seq = cc.sequence(act1, act2);

<span class="hljs-comment">// create sequence with array</span>
<span class="hljs-keyword">var</span> seq = cc.sequence(actArray);
</code></pre>
<h5 id="repeat">repeat</h5>
<p>Creates a Repeat action. Times is an unsigned integer between 1 and pow(2,30)</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L614" target="_blank">cocos2d/actions/CCActionInterval.js:614</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>action</code> <a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction</a> </li>
<li><code>times</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> rep = cc.repeat(cc.sequence(jump2, jump1), <span class="hljs-number">5</span>);
</code></pre>
<h5 id="repeatforever">repeatForever</h5>
<p>Create a acton which repeat forever, as it runs forever, it can&apos;t be added into cc.sequence and cc.spawn.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L716" target="_blank">cocos2d/actions/CCActionInterval.js:716</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>action</code> <a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> repeat = cc.repeatForever(cc.rotateBy(<span class="hljs-number">1.0</span>, <span class="hljs-number">360</span>));
</code></pre>
<h5 id="spawn">spawn</h5>
<p>Create a spawn action which runs several actions in parallel.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L829" target="_blank">cocos2d/actions/CCActionInterval.js:829</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>actionOrActionArray</code> <a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction</a> | <a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction[]</a> </li>
<li><code>tempArray</code> <a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> action = cc.spawn(cc.jumpBy(<span class="hljs-number">2</span>, cc.v2(<span class="hljs-number">300</span>, <span class="hljs-number">0</span>), <span class="hljs-number">50</span>, <span class="hljs-number">4</span>), cc.rotateBy(<span class="hljs-number">2</span>, <span class="hljs-number">720</span>));
todo:It should be the direct use <span class="hljs-keyword">new</span>
</code></pre>
<h5 id="rotateto">rotateTo</h5>
<p>Rotates a Node object to a certain angle by modifying its rotation property. <br>
The direction will be decided by the shortest angle.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L949" target="_blank">cocos2d/actions/CCActionInterval.js:949</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> duration in seconds</li>
<li><code>deltaAngleX</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> deltaAngleX in degrees.</li>
<li><code>deltaAngleY</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> deltaAngleY in degrees.</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> rotateTo = cc.rotateTo(<span class="hljs-number">2</span>, <span class="hljs-number">61.0</span>);
</code></pre>
<h5 id="rotateby">rotateBy</h5>
<p>Rotates a Node object clockwise a number of degrees by modifying its rotation property.
Relative to its properties to modify.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1036" target="_blank">cocos2d/actions/CCActionInterval.js:1036</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> duration in seconds</li>
<li><code>deltaAngleX</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> deltaAngleX in degrees</li>
<li><code>deltaAngleY</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> deltaAngleY in degrees</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> actionBy = cc.rotateBy(<span class="hljs-number">2</span>, <span class="hljs-number">360</span>);
</code></pre>
<h5 id="moveby">moveBy</h5>
<p>Moves a Node object x,y pixels by modifying its position property.                                  <br>
x and y are relative to the position of the object.                                                     <br>
Several MoveBy actions can be concurrently called, and the resulting                                  <br>
movement will be the sum of individual movements.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1152" target="_blank">cocos2d/actions/CCActionInterval.js:1152</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> duration in seconds</li>
<li><code>deltaPos</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>deltaY</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> actionTo = cc.moveBy(<span class="hljs-number">2</span>, cc.v2(windowSize.width - <span class="hljs-number">40</span>, windowSize.height - <span class="hljs-number">40</span>));
</code></pre>
<h5 id="moveto">moveTo</h5>
<p>Moves a Node object to the position x,y. x and y are absolute coordinates by modifying its position property. <br>
Several MoveTo actions can be concurrently called, and the resulting                                            <br>
movement will be the sum of individual movements.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1229" target="_blank">cocos2d/actions/CCActionInterval.js:1229</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> duration in seconds</li>
<li><code>position</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>y</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> actionBy = cc.moveTo(<span class="hljs-number">2</span>, cc.v2(<span class="hljs-number">80</span>, <span class="hljs-number">80</span>));
</code></pre>
<h5 id="skewto">skewTo</h5>
<p>Create a action which skews a Node object to given angles by modifying its skewX and skewY properties.
Changes to the specified value.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1323" target="_blank">cocos2d/actions/CCActionInterval.js:1323</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>t</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> time in seconds</li>
<li><code>sx</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>sy</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> actionTo = cc.skewTo(<span class="hljs-number">2</span>, <span class="hljs-number">37.2</span>, <span class="hljs-number">-37.2</span>);
</code></pre>
<h5 id="skewby">skewBy</h5>
<p>Skews a Node object by skewX and skewY degrees. <br>
Relative to its property modification.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1398" target="_blank">cocos2d/actions/CCActionInterval.js:1398</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>t</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> time in seconds</li>
<li><code>sx</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> sx skew in degrees for X axis</li>
<li><code>sy</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> sy skew in degrees for Y axis</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> actionBy = cc.skewBy(<span class="hljs-number">2</span>, <span class="hljs-number">0</span>, <span class="hljs-number">-90</span>);
</code></pre>
<h5 id="jumpby">jumpBy</h5>
<p>Moves a Node object simulating a parabolic jump movement by modifying it&apos;s position property.
Relative to its movement.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1525" target="_blank">cocos2d/actions/CCActionInterval.js:1525</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>position</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>y</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>height</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>jumps</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> actionBy = cc.jumpBy(<span class="hljs-number">2</span>, cc.v2(<span class="hljs-number">300</span>, <span class="hljs-number">0</span>), <span class="hljs-number">50</span>, <span class="hljs-number">4</span>);
<span class="hljs-keyword">var</span> actionBy = cc.jumpBy(<span class="hljs-number">2</span>, <span class="hljs-number">300</span>, <span class="hljs-number">0</span>, <span class="hljs-number">50</span>, <span class="hljs-number">4</span>);
</code></pre>
<h5 id="jumpto">jumpTo</h5>
<p>Moves a Node object to a parabolic position simulating a jump movement by modifying its position property. <br>
Jump to the specified location.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1607" target="_blank">cocos2d/actions/CCActionInterval.js:1607</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>position</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>y</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>height</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>jumps</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> actionTo = cc.jumpTo(<span class="hljs-number">2</span>, cc.v2(<span class="hljs-number">300</span>, <span class="hljs-number">300</span>), <span class="hljs-number">50</span>, <span class="hljs-number">4</span>);
<span class="hljs-keyword">var</span> actionTo = cc.jumpTo(<span class="hljs-number">2</span>, <span class="hljs-number">300</span>, <span class="hljs-number">300</span>, <span class="hljs-number">50</span>, <span class="hljs-number">4</span>);
</code></pre>
<h5 id="bezierby">bezierBy</h5>
<p>An action that moves the target with a cubic Bezier curve by a certain distance.
Relative to its movement.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1743" target="_blank">cocos2d/actions/CCActionInterval.js:1743</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>t</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> time in seconds</li>
<li><code>c</code> <a href="../classes/Vec2.html" class="crosslink">Vec2[]</a> Array of points</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> bezier = [cc.v2(<span class="hljs-number">0</span>, windowSize.height / <span class="hljs-number">2</span>), cc.v2(<span class="hljs-number">300</span>, -windowSize.height / <span class="hljs-number">2</span>), cc.v2(<span class="hljs-number">300</span>, <span class="hljs-number">100</span>)];
<span class="hljs-keyword">var</span> bezierForward = cc.bezierBy(<span class="hljs-number">3</span>, bezier);
</code></pre>
<h5 id="bezierto">bezierTo</h5>
<p>An action that moves the target with a cubic Bezier curve to a destination point.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1812" target="_blank">cocos2d/actions/CCActionInterval.js:1812</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>t</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>c</code> <a href="../classes/Vec2.html" class="crosslink">Vec2[]</a> Array of points</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> bezier = [cc.v2(<span class="hljs-number">0</span>, windowSize.height / <span class="hljs-number">2</span>), cc.v2(<span class="hljs-number">300</span>, -windowSize.height / <span class="hljs-number">2</span>), cc.v2(<span class="hljs-number">300</span>, <span class="hljs-number">100</span>)];
<span class="hljs-keyword">var</span> bezierTo = cc.bezierTo(<span class="hljs-number">2</span>, bezier);
</code></pre>
<h5 id="scaleto">scaleTo</h5>
<p>Scales a Node object to a zoom factor by modifying it&apos;s scale property.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1898" target="_blank">cocos2d/actions/CCActionInterval.js:1898</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>sx</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> scale parameter in X</li>
<li><code>sy</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> scale parameter in Y, if Null equal to sx</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-comment">// It scales to 0.5 in both X and Y.</span>
<span class="hljs-keyword">var</span> actionTo = cc.scaleTo(<span class="hljs-number">2</span>, <span class="hljs-number">0.5</span>);

<span class="hljs-comment">// It scales to 0.5 in x and 2 in Y</span>
<span class="hljs-keyword">var</span> actionTo = cc.scaleTo(<span class="hljs-number">2</span>, <span class="hljs-number">0.5</span>, <span class="hljs-number">2</span>);
</code></pre>
<h5 id="scaleby">scaleBy</h5>
<p>Scales a Node object a zoom factor by modifying it&apos;s scale property.
Relative to its changes.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L1948" target="_blank">cocos2d/actions/CCActionInterval.js:1948</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> duration in seconds</li>
<li><code>sx</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> sx  scale parameter in X</li>
<li><code>sy</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> | Null sy scale parameter in Y, if Null equal to sx</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example without sy, it scales by 2 both in X and Y</span>
<span class="hljs-keyword">var</span> actionBy = cc.scaleBy(<span class="hljs-number">2</span>, <span class="hljs-number">2</span>);

<span class="hljs-comment">//example with sy, it scales by 0.25 in X and 4.5 in Y</span>
<span class="hljs-keyword">var</span> actionBy2 = cc.scaleBy(<span class="hljs-number">2</span>, <span class="hljs-number">0.25</span>, <span class="hljs-number">4.5</span>);
</code></pre>
<h5 id="blink">blink</h5>
<p>Blinks a Node object by modifying it&apos;s visible property.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L2034" target="_blank">cocos2d/actions/CCActionInterval.js:2034</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> duration in seconds</li>
<li><code>blinks</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> blinks in times</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> action = cc.blink(<span class="hljs-number">2</span>, <span class="hljs-number">10</span>);
</code></pre>
<h5 id="fadeto">fadeTo</h5>
<p>Fades an object that implements the cc.RGBAProtocol protocol.
It modifies the opacity from the current value to a custom one.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L2101" target="_blank">cocos2d/actions/CCActionInterval.js:2101</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>opacity</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> 0-255, 0 is transparent</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> action = cc.fadeTo(<span class="hljs-number">1.0</span>, <span class="hljs-number">0</span>);
</code></pre>
<h5 id="fadein">fadeIn</h5>
<p>Fades In an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 0 to 255.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L2157" target="_blank">cocos2d/actions/CCActionInterval.js:2157</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> duration in seconds</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">//example</span>
<span class="hljs-keyword">var</span> action = cc.fadeIn(<span class="hljs-number">1.0</span>);
</code></pre>
<h5 id="fadeout">fadeOut</h5>
<p>Fades Out an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 255 to 0.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L2206" target="_blank">cocos2d/actions/CCActionInterval.js:2206</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>d</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> duration in seconds</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> action = cc.fadeOut(<span class="hljs-number">1.0</span>);
</code></pre>
<h5 id="tintto">tintTo</h5>
<p>Tints a Node that implements the cc.NodeRGB protocol from current tint to a custom one.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L2290" target="_blank">cocos2d/actions/CCActionInterval.js:2290</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>red</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> 0-255</li>
<li><code>green</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> 0-255</li>
<li><code>blue</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> 0-255</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> action = cc.tintTo(<span class="hljs-number">2</span>, <span class="hljs-number">255</span>, <span class="hljs-number">0</span>, <span class="hljs-number">255</span>);
</code></pre>
<h5 id="tintby">tintBy</h5>
<p>Tints a Node that implements the cc.NodeRGB protocol from current tint to a custom one.
Relative to their own color change.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L2383" target="_blank">cocos2d/actions/CCActionInterval.js:2383</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>duration</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> duration in seconds</li>
<li><code>deltaRed</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>deltaGreen</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>deltaBlue</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> action = cc.tintBy(<span class="hljs-number">2</span>, <span class="hljs-number">-127</span>, <span class="hljs-number">-255</span>, <span class="hljs-number">-127</span>);
</code></pre>
<h5 id="delaytime">delayTime</h5>
<p>Delays the action a certain amount of seconds.
&#x5EF6;&#x8FDF;&#x6307;&#x5B9A;&#x7684;&#x65F6;&#x95F4;&#x91CF;&#x3002;</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L2427" target="_blank">cocos2d/actions/CCActionInterval.js:2427</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>d</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> duration in seconds</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
<span class="hljs-keyword">var</span> delay = cc.delayTime(<span class="hljs-number">1</span>);
</code></pre>
<h5 id="reversetime">reverseTime</h5>
<p>Executes an action in reverse order, from time=duration to time=0.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L2509" target="_blank">cocos2d/actions/CCActionInterval.js:2509</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>action</code> <a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// example</span>
 <span class="hljs-keyword">var</span> reverse = cc.reverseTime(<span class="hljs-keyword">this</span>);
</code></pre>
<h5 id="targetedaction">targetedAction</h5>
<p>Create an action with the specified action and forced target.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/ActionInterval.html" class="crosslink">ActionInterval</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/actions/CCActionInterval.js#L2597" target="_blank">cocos2d/actions/CCActionInterval.js:2597</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>target</code> <a href="../classes/Node.html" class="crosslink">Node</a> </li>
<li><code>action</code> <a href="../classes/FiniteTimeAction.html" class="crosslink">FiniteTimeAction</a> </li>
</ul>
<h5 id="color">color</h5>
<p>The convenience method to create a new Color/Color:method
Alpha channel is optional. Default value is 255.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Color.html" class="crosslink">Color</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/value-types/color.js#L576" target="_blank">cocos2d/core/value-types/color.js:576</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>r</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>g</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>b</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>a</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<p>```Not found for the example path: temp-src/engine/docs/utils/api/engine/docs/cocos2d/core/value-types/CCColor/color.js</p>
<h5 id="rect">rect</h5>
<p>The convenience method to create a new Rect.
see Rect/Rect:method</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Rect.html" class="crosslink">Rect</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/value-types/rect.js#L416" target="_blank">cocos2d/core/value-types/rect.js:416</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>x</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>y</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>w</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>h</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-keyword">var</span> a = <span class="hljs-keyword">new</span> cc.Rect(<span class="hljs-number">0</span> , <span class="hljs-number">0</span>, <span class="hljs-number">10</span>, <span class="hljs-number">0</span>);
</code></pre>
<h5 id="size">size</h5>
<p>Helper function that creates a cc.Size.<br>
Please use cc.p or cc.v2 instead, it will soon replace cc.Size.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Size.html" class="crosslink">Size</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/value-types/size.js#L158" target="_blank">cocos2d/core/value-types/size.js:158</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>w</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> | <a href="../classes/Size.html" class="crosslink">Size</a> width or a size object</li>
<li><code>h</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> height</li>
</ul>
<h5 id="examples">Examples</h5>
<p>```Not found for the example path: temp-src/engine/docs/utils/api/engine/docs/cocos2d/core/value-types/CCSize/size.js</p>
<h5 id="v2">v2</h5>
<p>The convenience method to create a new <a href="../classes/Vec2.html" class="crosslink">cc.Vec2</a>.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Vec2.html" class="crosslink">Vec2</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/value-types/vec2.js#L651" target="_blank">cocos2d/core/value-types/vec2.js:651</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>x</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </li>
<li><code>y</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-keyword">var</span> v1 = cc.v2();
<span class="hljs-keyword">var</span> v2 = cc.v2(<span class="hljs-number">0</span>, <span class="hljs-number">0</span>);
<span class="hljs-keyword">var</span> v3 = cc.v2(v2);
<span class="hljs-keyword">var</span> v4 = cc.v2({x: <span class="hljs-number">100</span>, y: <span class="hljs-number">100</span>});
</code></pre>
<h5 id="p">p</h5>
<p>This function is deprecated since v2.0, please use V2.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Vec2.html" class="crosslink">Vec2</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/value-types/vec2.js#L668" target="_blank">cocos2d/core/value-types/vec2.js:668</a></td>
</tr>
<tr>
<td>Deprecated</td>
<td>since v2.0</td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>x</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> a Number or a size object</li>
<li><code>y</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="class">Class</h5>
<p>Defines a CCClass using the given specification, please see <a href="../docs/editors_and_tools/creator-chapters/scripting/class.html">Class</a> for details.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCClass.js#L829" target="_blank">cocos2d/core/platform/CCClass.js:829</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>options</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> <ul>
<li><code>name</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> The class name used for serialization.</li>
<li><code>extends</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> The base class.</li>
<li><code>ctor</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> The constructor.</li>
<li><code>__ctor__</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> The same as ctor, but less encapsulated.</li>
<li><code>properties</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> The property definitions.</li>
<li><code>statics</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> The static members.</li>
<li><code>mixins</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function[]</a> </li>
<li><code>editor</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> attributes for Component listed below.<ul>
<li><code>executeInEditMode</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> Allows the current component to run in edit mode. By default, all components are executed only at runtime, meaning that they will not have their callback functions executed while the Editor is in edit mode.</li>
<li><code>requireComponent</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> Automatically add required component as a dependency.</li>
<li><code>menu</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> The menu path to register a component to the editors &quot;Component&quot; menu. Eg. &quot;Rendering/Camera&quot;.</li>
<li><code>executionOrder</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> The execution order of lifecycle methods for Component. Those less than 0 will execute before while those greater than 0 will execute after. The order will only affect onLoad, onEnable, start, update and lateUpdate while onDisable and onDestroy will not be affected.</li>
<li><code>disallowMultiple</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> If specified to a type, prevents Component of the same type (or subtype) to be added more than once to a Node.</li>
<li><code>playOnFocus</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> This property is only available when executeInEditMode is set. If specified, the editor&apos;s scene view will keep updating this node in 60 fps when it is selected, otherwise, it will update only if necessary.</li>
<li><code>inspector</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> Customize the page url used by the current component to render in the Properties.</li>
<li><code>icon</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> Customize the icon that the current component displays in the editor.</li>
<li><code>help</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> The custom documentation URL</li>
</ul>
</li>
<li><code>update</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> lifecycle method for Component, see <a href="../classes/Component.html#method_update" class="crosslink">update</a></li>
<li><code>lateUpdate</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> lifecycle method for Component, see <a href="../classes/Component.html#method_lateUpdate" class="crosslink">lateUpdate</a></li>
<li><code>onLoad</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> lifecycle method for Component, see <a href="../classes/Component.html#method_onLoad" class="crosslink">onLoad</a></li>
<li><code>start</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> lifecycle method for Component, see <a href="../classes/Component.html#method_start" class="crosslink">start</a></li>
<li><code>onEnable</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> lifecycle method for Component, see <a href="../classes/Component.html#method_onEnable" class="crosslink">onEnable</a></li>
<li><code>onDisable</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> lifecycle method for Component, see <a href="../classes/Component.html#method_onDisable" class="crosslink">onDisable</a></li>
<li><code>onDestroy</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> lifecycle method for Component, see <a href="../classes/Component.html#method_onDestroy" class="crosslink">onDestroy</a></li>
<li><code>onFocusInEditor</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> lifecycle method for Component, see <a href="../classes/Component.html#method_onFocusInEditor" class="crosslink">onFocusInEditor</a></li>
<li><code>onLostFocusInEditor</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> lifecycle method for Component, see <a href="../classes/Component.html#method_onLostFocusInEditor" class="crosslink">onLostFocusInEditor</a></li>
<li><code>resetInEditor</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> lifecycle method for Component, see <a href="../classes/Component.html#method_resetInEditor" class="crosslink">resetInEditor</a></li>
<li><code>onRestore</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> for Component only, see <a href="../classes/Component.html#method_onRestore" class="crosslink">onRestore</a></li>
<li><code>_getLocalBounds</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> for Component only, see <a href="../classes/Component.html#method__getLocalBounds" class="crosslink">_getLocalBounds</a></li>
</ul>
</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// define base class</span>
<span class="hljs-keyword">var</span> Node = cc.Class();

<span class="hljs-comment">// define sub class</span>
<span class="hljs-keyword">var</span> Sprite = cc.Class({
name: <span class="hljs-string">&apos;Sprite&apos;</span>,
extends: Node,

ctor: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">this</span>.url = <span class="hljs-string">&quot;&quot;</span>;
<span class="hljs-keyword">this</span>.id = <span class="hljs-number">0</span>;
},

statics: {
<span class="hljs-comment">// define static members</span>
count: <span class="hljs-number">0</span>,
getBounds: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params">spriteList</span>) </span>{
<span class="hljs-comment">// compute bounds...</span>
}
},

properties {
width: {
<span class="hljs-keyword">default</span>: <span class="hljs-number">128</span>,
type: <span class="hljs-string">&apos;Integer&apos;</span>,
tooltip: <span class="hljs-string">&apos;The width of sprite&apos;</span>
},
height: <span class="hljs-number">128</span>,
size: {
get: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
<span class="hljs-keyword">return</span> cc.v2(<span class="hljs-keyword">this</span>.width, <span class="hljs-keyword">this</span>.height);
}
}
},

load: <span class="hljs-function"><span class="hljs-keyword">function</span> (<span class="hljs-params"></span>) </span>{
<span class="hljs-comment">// load this.url...</span>
};
});

<span class="hljs-comment">// instantiate</span>

<span class="hljs-keyword">var</span> obj = <span class="hljs-keyword">new</span> Sprite();
obj.url = <span class="hljs-string">&apos;sprite.png&apos;</span>;
obj.load();
</code></pre>
<h5 id="isccclass">_isCCClass</h5>
<p>Checks whether the constructor is created by cc.Class</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCClass.js#L1000" target="_blank">cocos2d/core/platform/CCClass.js:1000</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>constructor</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> </li>
</ul>
<h5 id="enum">Enum</h5>
<p>Define an enum type. <br>
If a enum item has a value of -1, it will be given an Integer number according to it&apos;s order in the list.<br>
Otherwise it will use the value specified by user who writes the enum definition.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCEnum.js#L34" target="_blank">cocos2d/core/platform/CCEnum.js:34</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>obj</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">object</a> a JavaScript literal object containing enum names and values, or a TypeScript enum type</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// JavaScript:</span>

<span class="hljs-keyword">var</span> WrapMode = cc.Enum({
    Repeat: <span class="hljs-number">-1</span>,
    Clamp: <span class="hljs-number">-1</span>
});

<span class="hljs-comment">// Texture.WrapMode.Repeat == 0</span>
<span class="hljs-comment">// Texture.WrapMode.Clamp == 1</span>
<span class="hljs-comment">// Texture.WrapMode[0] == &quot;Repeat&quot;</span>
<span class="hljs-comment">// Texture.WrapMode[1] == &quot;Clamp&quot;</span>

<span class="hljs-keyword">var</span> FlagType = cc.Enum({
    Flag1: <span class="hljs-number">1</span>,
    Flag2: <span class="hljs-number">2</span>,
    Flag3: <span class="hljs-number">4</span>,
    Flag4: <span class="hljs-number">8</span>,
});

<span class="hljs-keyword">var</span> AtlasSizeList = cc.Enum({
    <span class="hljs-number">128</span>: <span class="hljs-number">128</span>,
    <span class="hljs-number">256</span>: <span class="hljs-number">256</span>,
    <span class="hljs-number">512</span>: <span class="hljs-number">512</span>,
    <span class="hljs-number">1024</span>: <span class="hljs-number">1024</span>,
});

<span class="hljs-comment">// TypeScript:</span>

<span class="hljs-comment">// If used in TypeScript, just define a TypeScript enum:</span>
enum Direction {
    Up,
    Down,
    Left,
    Right
}

<span class="hljs-comment">// If you need to inspect the enum in Properties panel, you can call cc.Enum:</span>
<span class="hljs-keyword">const</span> {ccclass, property} = cc._decorator;

@ccclass
<span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">NewScript</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">cc</span>.<span class="hljs-title">Component</span> </span>{
    @property({
        type: cc.Enum(Direction)    <span class="hljs-comment">// call cc.Enum</span>
    })
    direction: Direction = Direction.Up;
}
</code></pre>
<h5 id="getlist">getList</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object[]</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCEnum.js#L90" target="_blank">cocos2d/core/platform/CCEnum.js:90</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>enumDef</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> the enum type defined from cc.Enum</li>
</ul>
<h5 id="handletouchesbegin">handleTouchesBegin</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L99" target="_blank">cocos2d/core/platform/CCInputManager.js:99</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>touches</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </li>
</ul>
<h5 id="handletouchesmove">handleTouchesMove</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L134" target="_blank">cocos2d/core/platform/CCInputManager.js:134</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>touches</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </li>
</ul>
<h5 id="handletouchesend">handleTouchesEnd</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L166" target="_blank">cocos2d/core/platform/CCInputManager.js:166</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>touches</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </li>
</ul>
<h5 id="handletouchescancel">handleTouchesCancel</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L180" target="_blank">cocos2d/core/platform/CCInputManager.js:180</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>touches</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </li>
</ul>
<h5 id="getsetoftouchesendorcancel">getSetOfTouchesEndOrCancel</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L194" target="_blank">cocos2d/core/platform/CCInputManager.js:194</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>touches</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </li>
</ul>
<h5 id="gethtmlelementposition">getHTMLElementPosition</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L220" target="_blank">cocos2d/core/platform/CCInputManager.js:220</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>element</code> <a href="https://developer.mozilla.org/en/Document_Object_Model_(DOM)/HTMLElement" class="crosslink external" target="_blank">HTMLElement</a> </li>
</ul>
<h5 id="getpretouch">getPreTouch</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Touch.html" class="crosslink">Touch</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L267" target="_blank">cocos2d/core/platform/CCInputManager.js:267</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>touch</code> <a href="../classes/Touch.html" class="crosslink">Touch</a> </li>
</ul>
<h5 id="setpretouch">setPreTouch</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L287" target="_blank">cocos2d/core/platform/CCInputManager.js:287</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>touch</code> <a href="../classes/Touch.html" class="crosslink">Touch</a> </li>
</ul>
<h5 id="gettouchbyxy">getTouchByXY</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Touch.html" class="crosslink">Touch</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L312" target="_blank">cocos2d/core/platform/CCInputManager.js:312</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>tx</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>ty</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
<li><code>pos</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> </li>
</ul>
<h5 id="gettouchbyxy">getTouchByXY</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Event.EventMouse.html" class="crosslink">Event.EventMouse</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L329" target="_blank">cocos2d/core/platform/CCInputManager.js:329</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>location</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> </li>
<li><code>pos</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> </li>
<li><code>eventType</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="getpointbyevent">getPointByEvent</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Vec2.html" class="crosslink">Vec2</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L347" target="_blank">cocos2d/core/platform/CCInputManager.js:347</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>event</code> <a href="../classes/Touch.html" class="crosslink">Touch</a> </li>
<li><code>pos</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> </li>
</ul>
<h5 id="gettouchesbyevent">getTouchesByEvent</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L368" target="_blank">cocos2d/core/platform/CCInputManager.js:368</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>event</code> <a href="../classes/Touch.html" class="crosslink">Touch</a> </li>
<li><code>pos</code> <a href="../classes/Vec2.html" class="crosslink">Vec2</a> </li>
</ul>
<h5 id="registersystemevent">registerSystemEvent</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L406" target="_blank">cocos2d/core/platform/CCInputManager.js:406</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>element</code> <a href="https://developer.mozilla.org/en/Document_Object_Model_(DOM)/HTMLElement" class="crosslink external" target="_blank">HTMLElement</a> </li>
</ul>
<h5 id="update">update</h5>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCInputManager.js#L597" target="_blank">cocos2d/core/platform/CCInputManager.js:597</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>dt</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a> </li>
</ul>
<h5 id="isvalid">isValid</h5>
<p>Checks whether the object is non-nil and not yet destroyed.<br>
When an object&apos;s <code>destroy</code> is called, it is actually destroyed after the end of this frame.
So <code>isValid</code> will return false from the next frame, while <code>isValid</code> in the current frame will still be true.
If you want to determine whether the current frame has called <code>destroy</code>, use <code>cc.isValid(obj, true)</code>,
but this is often caused by a particular logical requirements, which is not normally required.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/CCObject.js#L509" target="_blank">cocos2d/core/platform/CCObject.js:509</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>value</code> Any </li>
<li><code>strictMode</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a> If true, Object called destroy() in this frame will also treated as invalid.</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-keyword">var</span> node = <span class="hljs-keyword">new</span> cc.Node();
cc.log(cc.isValid(node));    <span class="hljs-comment">// true</span>
node.destroy();
cc.log(cc.isValid(node));    <span class="hljs-comment">// true, still valid in this frame</span>
<span class="hljs-comment">// after a frame...</span>
cc.log(cc.isValid(node));    <span class="hljs-comment">// false, destroyed in the end of last frame</span>
</code></pre>
<h5 id="deserialize">deserialize</h5>
<p>Deserialize json to cc.Asset</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/deserialize.js#L745" target="_blank">cocos2d/core/platform/deserialize.js:745</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>data</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> the serialized cc.Asset json string or json object.</li>
<li><code>details</code> <a href="../classes/Details.html" class="crosslink">Details</a> additional loading result</li>
<li><code>options</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </li>
</ul>
<h5 id="instantiate">instantiate</h5>
<p>Clones the object <code>original</code> and returns the clone, or instantiate a node from the Prefab.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/platform/instantiate.js#L36" target="_blank">cocos2d/core/platform/instantiate.js:36</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>original</code> <a href="../classes/Prefab.html" class="crosslink">Prefab</a> | <a href="../classes/Node.html" class="crosslink">Node</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> An existing object that you want to make a copy of.</li>
</ul>
<h5 id="examples">Examples</h5>
<pre><code class="lang-js"><span class="hljs-comment">// instantiate node from prefab</span>
<span class="hljs-keyword">var</span> scene = cc.director.getScene();
<span class="hljs-keyword">var</span> node = cc.instantiate(prefabAsset);
node.parent = scene;
<span class="hljs-comment">// clone node</span>
<span class="hljs-keyword">var</span> scene = cc.director.getScene();
<span class="hljs-keyword">var</span> node = cc.instantiate(targetNode);
node.parent = scene;
</code></pre>
<h5 id="find">find</h5>
<p>Finds a node by hierarchy path, the path is case-sensitive.
It will traverse the hierarchy by splitting the path using &apos;/&apos; character.
This function will still returns the node even if it is inactive.
It is recommended to not use this function every frame instead cache the result at startup.</p>
<table>
<thead>
<tr>
<th>meta</th>
<th>description</th>
</tr>
</thead>
<tbody>
<tr>
<td>Returns</td>
<td><a href="../classes/Node.html" class="crosslink">Node</a> | Null </td>
</tr>
<tr>
<td>Defined in</td>
<td><a href="https://github.com/cocos-creator/engine/blob/8f14bc42a40e57c2d3b846c4f7f26f1a1753232c/cocos2d/core/utils/find.js#L30" target="_blank">cocos2d/core/utils/find.js:30</a></td>
</tr>
</tbody>
</table>
<h6 id="parameters">Parameters</h6>
<ul>
<li><code>path</code> <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> </li>
<li><code>referenceNode</code> <a href="../classes/Node.html" class="crosslink">Node</a> </li>
</ul>

                
                </section>
            
        </div>
    </div>

            </div>

            
                
                <a href="anysdk.html" class="navigation navigation-prev " aria-label="Previous page: anysdk">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="dragonBones.html" class="navigation navigation-next " aria-label="Next page: dragonBones">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"cc","level":"1.5","depth":1,"next":{"title":"dragonBones","level":"1.6","depth":1,"path":"modules/dragonBones.md","ref":"modules/dragonBones.md","articles":[]},"previous":{"title":"anysdk","level":"1.4","depth":1,"path":"modules/anysdk.md","ref":"modules/anysdk.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-search","search-title","github-issue-feedback-language-custom","anchorjs","sharing","splitter"],"styles":{"website":"./styles/website.css"},"pluginsConfig":{"livereload":{},"splitter":{},"search":{"maxIndexSize":100000000},"lunr":{"maxIndexSize":100000000},"fontsettings":{"theme":"white","family":"sans","size":2},"search-title":{},"highlight":{},"sharing":{"qq":true,"all":["facebook","google","twitter","weibo","instapaper"],"douban":false,"facebook":true,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"github-issue-feedback-language-custom":{"repo":"cocos-creator/creator-api-docs","branch":"master"},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchorjs":{}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"index.md","glossary":"GLOSSARY.md","summary":"index.md"},"variables":{"products":[{"name":"Cocos Creator","links":[{"name":"Manual","link":"http://docs.cocos.com/creator/manual/en"},{"name":"API Ref","link":"http://docs.cocos.com/creator/api/en"}]},{"name":"Cocos2d-x","links":[{"name":"Manual","link":"http://docs.cocos.com/cocos2d-x/manual/en/"},{"name":"API Ref","link":"http://www.cocos2d-x.org/docs/api-ref/index.html"}]},{"name":"AnySDK","link":"http://docs.anysdk.com/"}],"version":[{"name":"2.0 Preview","links":[{"name":"1.x","link":"http://docs.cocos.com/creator/api/en"},{"name":"2.0 Preview","link":"http://docs.cocos.com/creator/api/2.0/en"}]}]},"language":"en","gitbook":"*"},"file":{"path":"modules/cc.md","mtime":"2018-06-12T08:14:47.000Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-06-12T08:19:29.814Z"},"basePath":"..","book":{"language":"en"}});
        });
    </script>
</div>

        
    
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-search-title/jquery.mark.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search-title/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github-issue-feedback-language-custom/plugin.js"></script>
        
    
        
        <script src="https://cdnjs.cloudflare.com/ajax/libs/anchor-js/4.1.0/anchor.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-anchorjs/anchor-style.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    <script type="text/javascript">
    function toggleLanguage () {
        var path = location.href;
        // console.log(path);
        if (path.indexOf('/zh') !== -1) {
            path = path.replace(/\/zh[\/$\s]/i, '/en/');
        } else if (path.indexOf('/en') !== -1) {
            path = path.replace(/\/en[\/$\s]/i, '/zh/');
        }
        // console.log('after: ' + path);    
        location.assign(path);
    }

    // this method is used to avoid the possibility of failure of the URL's anchor on WAN
    function makeSureAnchorJumped () {
        var anchor = window.location.href.split('#')[1];
        if (anchor) {
            var element = document.getElementById(anchor);
            if (element) {
                var topPos = element.offsetTop;
                // for Safari browers
                document.body.scrollTop = topPos;
                // for IE, Chrome, FireFox, Opera browers
                document.documentElement.scrollTop = topPos;
            }
        }
    }

    function avoidOnLoadConflict (onLoad) {
        if (!window.onload) {
            window.onload = onLoad;
        }
        else {
            var oldFunc = window.onload;
            window.onload = function () {
                oldFunc();
                onLoad();            
            };
        }
    }
    avoidOnLoadConflict(makeSureAnchorJumped);
    </script>

    </body>
</html>

